Question

How to export a single rule from a ruleset?

Hello,

All the tools provided in Pega Studios, allows the export of a rulset at the most granular level.

How can we from the designer, export / import only one single rule form the ruleset?

Thank you

Comments

Keep up to date on this post and subscribe to comments

December 11, 2019 - 8:25am

Hey Erahal,

If you are talking about importing/exporting a single rule to another environment then you can create a product rule that only includes the rule instance you want and  then import that JAR file.

Thanks,

Leigh

December 11, 2019 - 9:33am

Comment  by Leigh is correct . Step by Step instructions in case you need them

1. Create a new Product Rule -- provide any name ( Right click on Sysadmin-> Create -> Product)

Version - 01.01.01

2.  On the rule, scroll down to "Individual instances to include"

Provide the label and key -- for the key -- provide the pzInsKey of the rule. 

(The pzInsKey can be found by clicking on Actions->View XML-> and search for the pzInsKey)

3. Check "Allow unlocked ruleset versions)

"Save" the rule

Once you have the "Create Product file" button will be enabled and you should be able to download the jar

December 11, 2019 - 10:53am
Response to Krithiga_GCS

Hello,

Thanks for your answer, Unfortunately this doesn;t suit the need, as the rule name changes. I need this to try an export the reports in the custom reporting module in Pega. And each new report created and saved has a different name.

Thus a fixed product rule with a fixed name does not help

Any other suggestion?

Thanks

Elie

Pega
December 11, 2019 - 9:42am

Here is a document attached that shows the process.

 

 

December 11, 2019 - 10:55am
Response to mahab_GCS

Hello,

Thanks for your answer, Unfortunately this doesn;t suit the need, as the rule name changes. I need this to try an export the reports in the custom reporting module in Pega. And each new report created and saved has a different name.

Thus a fixed product rule with a fixed name does not help

Any other suggestion? If the xml representation is actual the represenation of the rule, isn't there a way to actualy export / import this definition ?

Thanks

Elie

December 11, 2019 - 11:05am

Can you please elaborate on what you meant by  'Customer reporting module'?

December 11, 2019 - 3:11pm
Response to N.SenSharma

Hello,

I attached an image showing the module in Pega Knowledge OOTB application.
These reports as you know are stored in a custom ruleset created under the advanced section of the application

Regards,
Elie