Skip to main content
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Activities

In Pega Platform™, activities automate processing. You create activities in Dev Studio with steps that run in the order you specify. Activity Rules automate the system to support complex Processes, elaborate calculations, or when a Rule requires an activity in order to run. As a best practice, check to see if an Out-of-the-Box (OOTB) process exists as custom activities can make it more difficult to maintain your application.

Note: For more information about creating an activity, see Creating an activity.

Activities might be appropriate for the following Processes: 

  • Background processing
  • Complex loops
  • Declare OnChange
  • Parallel processing
  • Recurring scheduled events
  • Services

For instance, a Declare OnChange requires using an activity to run a Process or suspend work when the value of a specified property changes.  After the activity finishes, control returns to the Rule that called the activity.

In another example, an insurance company needs to upload submitted insurance claims to the Division of Motor Vehicles. Automated uploads occur at off-peak hours to minimize the impact on users. In Pega Platform, you can configure an activity to automate claim uploads without user intervention.

Note: When an activity Rule is appropriate, use the standard activities included in Pega Platform. Avoid writing custom activities unless needed to satisfy a complex application requirement. Standard activities apply to the @baseclass, Work-, Assign-, and History- classes.

Activities versus Data Transforms

Activities fulfill a distinct purpose compared to Data Transforms. The following table describes these differences:

Activity Data Transform

General "do anything" purpose

Specialized Data Transform Rule

Enforces GOTO logic

Has logic structured in blocks

One step page context

Has the concept of Target & Source contexts

Allows for all-in-one conglomerates of Actions

Has useful mapping tools like Update page & Append And Map to

Introduces the ease of access to various low-level technical operations

Pushes developer to split the logic

Introduces risks for maintenance and updates

Pushes developers to use dedicated Rules, e.g. Data Pages for connections & reports, a multitude of out-of-the-box Functions, etc.

 

Adherence to the principle of Separation of Concerns

  The only Rule in Pega that allows for a seamless super class call

Activities are flexible but bring a lot of maintenance issues. As a best practice, use Data Transforms and other specialized Rules when possible. If there is no alternative, consider using an activity.

Automations and activities

Automations are OOTB Rules that you can configure as Steps in the Case Designer and as utilities in flows to perform specific tasks, such as moving a Case to the next Stage or saving Case attachments to a document repository. Automations can include standard activities. You can open an Automation Rule to view its inputs and outputs. You can also use Automations in an activity, using the Call-Automation method. 

Note: To learn more about Automations, see Automations and Pega-supplied Automations.

Check your knowledge with the following interaction:


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice