Question
IN
Last activity: 26 Oct 2017 12:15 EDT
Activity vs Data transforms
Why activities are not good performance wise compared to data transforms or other rules in Pega.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi,
Activities are harder to maintain and not as easy to construct as other rules in Pega.
We should not use an activity for calculations or property validations that we can implement as constraints rules or Declare Expression rules. Use of a declarative rule (rather than an activity) eliminates the need to control how and when an activity executes. A best practice is to use declarative processing rather than activities when feasible.
For data manipulations, we can use a Data Transform instead of an activity.
To query from an external DB, we can use Report Definition rules instead of activities.
We may need to automate the processing of cases with a sequence of steps to be executed. Most of the time, this is possible with the steps in the case designer or multiple shapes in a flow rule or with declarative rules or data transform rules or a combination of those and other rules.
Thanks,
Gisela
-
Merve Mallı
IN
Hi Gisela,
You explained about alternatvies to activity , my question is why all these alternatives ? End of day everything is same java code na. So why not activity.
-
KIRUTHIKA J
Pegasystems Inc.
IN
Hi Pavan,
As per my understanding, if developers create activities, it makes their applications harder to maintain and harder to upgrade. Rather than having them create activities, Pega has created alternatives, so that they can do what they need without activities.
Thanks,
Gisela
-
Sagar Chavan
Pegasystems Inc.
US
IN
Yeah Mahesh , i read it earlier but i still didnt understand why activity is not good as end of day whether it is DT or a DEclare rule its again java code . Then why specifically activity is not good?
Pegasystems Inc.
US
Hi Pavani,
Pega is not the coding language and Pega should write the code not the end user. But in each rule you can find the expression builder to write the Java code which is provided as a work around to the end user, as we can't achieve everything through non-java. In activities we have features like entry & exit conditions, Jump conditions, calls to other activities through which its hard to debug and manage the code by the developer, that is the reason we recommend to have at max 25 steps in an activity and activity should be used if no other rule can fulfill your requirement.
Hope this information might be helpful to you.
Regards
Mahesh
IN
I agree Pega is not coding language, but my question is same code generates when u do property set or loop in activity or data transform. Then Y no to activity and yes to other rules?
Pegasystems Inc.
US
Actually writing an activity is very near to writing the code, we are compelling our users to not to write the code and get all your requirements done with all the available existing rules which are like configurations. Its not just the Property-set or loop through functionalities available in activities, there are many other functionalities that can be performed in activities like writing Java code, Jump to other steps, go to another activities, etc.
-
Sai Srinivas Sanapala
IN
Thanks Midhun for your patience and reply :). So if i have to just do property sets .. a lot a property sets then it doesnot matter whether i use a Data transform or a activity right?. If i am not doing anything other than property-set.
Pegasystems Inc.
US
If your task is just to perform the property initializations then you don't need to go for an activity rule Pavani, as activity is mostly used if you can't perform your business task with the other existing rules.