Is it good to call an activity from Data Transform?

Hi,

I wanted to know is it good to call an activity from Data Transform. I think Data Transform is used to do lightweight processing. What is the recommended approach?

Thanks,

Sakhib Hussain

Pega does not have a guardrail against calling an Activity from a Data Transform. However, it is generally better to keep Data Transforms lightweight. Calling a Data Transform from an Activity is more readable, whereas calling an Activity from a Data Transform can make the code harder to understand and maintain.

Should be avoided. Use it only if there is no other option. I would say not frequent need but in rare situation there might be no other option.

As Kamil mentioned should be avoided. However, it depends. Because even though is a best practice that we should avoid using activities we can use it if by any chance we don’t have any other option. Just to mention, as well activites have their own best practices, such as not exceeding 25 steps or avoid using Java steps.

Hope this helps.

As @Kamil_Janeczek mentioned, it should be avoided. Please let us know your use case with more context so we can provide the correct recommendation.

Just want to jump into this, for Citizen Developers projects the CD users have access to Data Transforms, hence they are also able to use the data transforms as a wrapper to call the activities, while also adding pre/post data transforms into the wrapper.

The activity name will be made to be unique as well, so to be able to conduct impact analysis through “All Content” search.