Sunday, 27 June 2021

How to use collection rule in pega

Collection Rule Overview:

Collection rule is similar like activity rule, this rule we can use to build business logic. It contains orfer collection of steps this will execute in sequence. Similar to the flow action rule , collection rule has pre and post action. we can navigate very easily in this rule as per my experiance.

Rule Class Name: Rule-Declare-Collection


Where we can refer this rule?

We can refer this rule in activity using Collect Method or inside another collection Inside activity:
Calling collection rule from activity

Inside another collection:
Calling collection rule from another collection rule

What is the use of this rule?

We can run multiple functionality like activity, data transform, decision table, decision treee, expression, function, map value, set property, stop , when . In sequence similar like activity using this rule.

Collection rule

What is response Action in each step?

After completing the step mentioned, If I want to perform any particular action when an condition met I can add in the response action .

response action in collection rule

In response action we can call, activity, data transform, expression, function, set property, stop

What is pre/Post actions in Collection rule?

In flow action, we are having pre and post action concept, similarly in collection rule we are having pre and post actions , We can execute some rules on loading collection rule or on completing collection rule.

pre and post action in collection rule

1 comment: