Activity is a ruletype in pega consist of sequence of steps which are executed in order to perform a particular task. Activity are used mainly for background processing.
Instance of Rule-Obj-Activity.
EG:
send an email when the registration is completed
send a birthday mail to all customers at midnight 12.00 AM
Create a new operator as the part of the case
Definitions to know:
- Label: The label acts as an identifier for the step in pre- (When) and post- (Jump) processing actions. Enter two forward slashes (//) in the Label field to skip a step for testing purposes at run time.
- Loop:
- For Each Top Level Page: It is found in clipboard under user pages. (EG: pyWorkPage)
- For Each Page : Used for Page List and Page Group.
- For Each Value list/grp
- For Loop: Same As Java.
- When Rule: When condition to execute a statement. Entry Point to Execute a Step.
- Step Page: The step page allows you to set a different context(Page Name) for a step. In Pages and Classes you can mention your TempPageand you can give a different class(CaseType). Now you can use the properties of that class and do some changes. Temporarily.
- Parameters: It can be used by the user to enter values and to avoid hard coding.
- First define any parameter in the Parameters Tab and to set any value you can define as param.parametervalue.
- Local varaible: Local variable is used only in the execution of the activity. No seperate page is created in the clipboard like a Parameter.
In an Activity you can Use Stepstatus fail/good to exit an activity. (use jump)
Primary:
You should primary when the step pahe is changed in an activity.
Eg: Step Page : pyWorkpage then
.BillingAddress.State = .ShippingAddress.State