What is ‘ACTIVITY’ and How do we use ‘ACTIVITY’ in PEGA?
Activity is a rule which is used to implement business logic.
It can be created under technical category.
The implementation of our own business logic can be done by using OOTB methods.
Method: – Method is something which is already having predefined business logic written in Java Code.
PRPC provides many different methods, those can be accessed under Method Dropdown in an activity rule.
We need to learn what method is for What purpose and accordingly make use of these methods in activity rule forms.
Activity contains series of steps, at each and every step we can call ONE method.
Max number of recommended steps to add per, activity is 28. More than 28 steps may lead to performance issues.
If it is exceeding More than 28 steps, create multiple activities and call all together in one single activity.
An activity can be called other activity by using below instructions
- Call 2. Branch 3. Queue
Using an activity we can do many things
- Create Pages on clipboard
- Assign values to properties.
- Call Other activities
- Call DB Tables and pass Queries
- Call Other Applications by using Web service protocols etc…
Below are basic Methods
- Page-New à To create user pages on clipboard.
- Property-Set à Perform assignment operations
- Page-Remove à To delete pages from Clipboard.
Creating An activity, to create a page referring Vehicle class and set the property values.
Go to pages and classes tab and define the pages that we wanted to create or access.
Come back to steps tab
Select the method and step page.
Add one more step
Click on expand icon.
Now run the activity and see the results on clipboard.
Click on run button
Now, execution is completed.
To see the results go to clipboard.
Beside thread select standard
Now we can se page 1 click on that
Here other than user properties, we can see one more OOTB property
pxObjClass : This property hold the reference class name of Page.
When we directly run the activity, activity data will not be getting stored into back end.