Activities
what is an Activity?
Ans:- “In Pega Platform™, activities automate processing. You create activities in Dev Studio with steps that run in the order we specify. Activity rules automate the system to support complex processes, elaborate calculations, or when a rule requires an activity in order to run.”
Activities are created and managed visually using Pega's low-code development capabilities, and they are used to define the business logic and behaviour of a Pega application, automate tasks, and perform various actions.
an activity in Pega is a rule that represents a sequence of steps used to accomplish a specific task in a Pega application.
Label
The label acts as an identifier for the step in the pre- (When) and post- (Jump) processing actions and describes the purpose of the activity.
To comment out an activity step line, enter two forward slashes (//) in the Label field to skip a step for testing purposes at runtime.
Loop
A loop repeats a step a specified number of times. Loops iterate over the elements of a value list, value group, or page group. For example, a loop supports iterating over items in a page list to update a property value on each page in the page list.
Pre-processing actions (When)
For pre-processing actions (When), a condition is evaluated before the step runs. Based on the result, the step is either performed or skipped.
Method Parameters
Each method accepts one or more parameters that allow you to pass necessary information, such as the name of a property and the value to set. A property that you adjust to increase or decrease the case urgency, .pyUrgencyWorkAdjust, is referenced by the flow action UrgencyAdjust.
Step Page
A step page is a page in memory on which the method is processed. By default, the activity executes in the context by which it is called. For example, an activity that is called from a utility shape during case processing executes against the page assigned to the case type (pyWorkPage).
Method
Activities are composed of one or more sequenced steps. Each activity step must specify a method that describes the action the system takes. For example, the Property-Set method sets the value of a specified property, while the Page-Remove method deletes a specified clipboard page that is no longer needed.
Post-processing actions (Jump)
For post-processing actions (Jump), a condition is evaluated after the step runs. Based on the result, the activity jumps to an alternate step or ends.
ACTIVITY TYPES:-
|
Activity type |
Description |
|
Onchange |
Select if the activity is executed automatically by a Declare OnChange rule[A Declare OnChange rule automatically executes an activity, or suspends the current work object, when the value of a specified property changes..] |
|
Route |
Select if the activity is used “to route an assignment in a flow rule.” |
|
Rule Connect |
Select if the activity “calls a connector rule” to interface with an external system. |
|
Notify |
Select if the activity is used to “notify a user or users of a pending assignment.” |
|
Trigger |
Select if the activity is executed automatically by a Declare Trigger rule. |
|
Load Data Page |
Select if the activity adds values to data pages. Reference this activity on the Definition tab of a Data Page rule. |
|
Utility |
Select if the activity is called from a Utility shape in a flow rule. |
Comments
Post a Comment