How to disable declartive network for a resave activity

I have implemented the cite specific cipher for strage stream.

Now i want to encrypt the existing data.

To do that the approach that we are taking is to resave the data.

There are lots of declarative rules that gets executed.

I want to disable these declare rules while this resave happens.


Is there a way to get this job done from backend, like execute a shell program that does the same job


Pega 7.1.7



**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

December 26, 2016 - 7:40am

There are some APIs to do so - 

To disable - (com.pega.pegarules.priv.context.PegaThread)tools.getThread()).disableClipboardDeclarativeProcessing();

To enable back - ((com.pega.pegarules.priv.context.PegaThread)tools.getThread()).restoreClipboardDeclarativeProcessing();

Only for backward chaining - tools.getInfEngUtils().disableAutomaticBackwardChaining();

But these are private APIs which means even though they are available for use in rules but these are only meant to be used by Pega for code generation. Meaning they may stop working as expected one fine day.