0% found this document useful (0 votes)
61 views12 pages

How To Use Step Page

The document describes configuring step pages in activities. It provides instructions to create two activities, CallingActivity and CalledActivity, and use the call instruction and step pages. Key steps include creating the activities, adding steps, configuring step pages, and calling one activity from another.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views12 pages

How To Use Step Page

The document describes configuring step pages in activities. It provides instructions to create two activities, CallingActivity and CalledActivity, and use the call instruction and step pages. Key steps include creating the activities, adding steps, configuring step pages, and calling one activity from another.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Exercise: Configuring a step page in an

activity

Scenario
Activity to demonstrate the following:
 Identify the step page and primary page of an activity.
 Create the new step page in an activity.
 Use the step page and identify the primary page.
 Use the Call instruction to call another activity in the class hierarchy.

The following table provides the credentials you need to complete the exercise.
Role Operator ID Password
Administrator Admin@RGB rules

Your assignment
Create two activities, CallingActivity and CalledActivity, and verify the usage of the
call instruction with and without the step page.
 Create the activity rule CallingActivity as shown in the following image.
 Use the step page in the CallingActivity and verify the result.
 Include a third step to call another activity, CalledActivity.
 Create the activity rule CalledActivity with the step details, as shown in the
following image.

 Use the step page in the CalledActivity and verify the result.
Detailed Steps
Create CallingActivity

1. Create a simple Case Type “Activity Example”

2. Create two properties in the Data Model


a. Name (Text)
b. Age (Integer)

3. In the Activity Example CaseType, create an activity with the name


CallingActivity.
App Explorer  Right click on ActivityExample  Technical Activity

4. Under Label, choose the title CallingActivity.

5. Click Create and open.

6. Add two steps, as shown in the following image.


7. Click Save to save the activity rule.

8. Click Action and then click Run to execute the activity and see the output.

9. Verify the output looks like the following image.

Note: The Applied to class of the Activity is the Primary Page. In this activity, the
Step page is not used, so it takes the default Primary page.
Create the CalledActivity activity
1. Create the activity in the class Group Classes RGB-Warranty-Work and name
it CalledActivity.
2. Click Create and open to create the activity.

3. Create two steps as shown in the following image.

4. Click Save to save the activity rule.


5. Click Action and then click Run to execute the activity and see the output.
Note: The Applied to class of the Activity is the Primary Page. In this activity, the
Step page is not used, so it takes the default Primary page.

Configure the step page


1. In the Application Explorer, from the Candidate CaseType class, open the
CallingActivity rule and check out the rule.
2. On the Pages & Classes tab, add a new Step page, as shown in the
following image.

3. In the Steps tab of the activity rule, add the step page in the First Step, as
shown in the following image.

3. Save the activity rule.


4. Click Action and then click Run to execute the activity and see the output.
The name and age are not displayed as the property’s values are stored in
NewStepPage, and the output displays the Primary page.
5. Configure the step page for the second step as NewStepPage.

6. Save the activity rule.

7. Click Action and then click Run to execute the activity and see the output.
The values of the properties Name and Age are shown in the following image.

8. In the class group Classes RGB-Warranty-Work, open the activity rule


CalledActivity and check out the rule.
9. In the Pages & Classes tab, add a new Page name, as shown in the
following image.
10. In the Steps tab, update the first step to configure the Step page.
11. Click Save to save the activity.

12. Click Action and then click Run to execute the activity and see the output. In
the output, the name and age are not displayed because the property’s value
is stored in NewStepPage, and the Primary page is displayed here.
13. Configure the Step page NewStepPage1 to the second step.
14. Click Save to save the activity.

21. Click Action and then click Run to execute the activity and see the output. The
output of Name and Age is displayed in the following image.
Configure Call instruction
1. Open the activity rule CallingActivity.
2. Add the third step to use the instruction Call and call the CalledActivity,
as shown in the following image. The Step page remains blank.

3. Click Save to save the activity.


4. Click Action and then click Run to execute the activity and see the output.

5. Update the activity rule step three to configure the step page as
NewStepPage and save the activity.
6. Click Action and then click Run to execute the activity and see the output.
The primary page for CalledActivity is NewStepPage1 as it is specified in the
CalledActivity.

7. Open the CalledActivity and make the Step page blank for both the steps.

8. Run the CallingActivity. The output is shown in the following image. The class
name changes to Classes RGB-Warranty-Work-ActivityExample because
the step page for the called activity is Classes RGB-Warranty-Work-
ActivityExample.
Usage of Primary keyword
1. Open the CalledActivity and change the property’s value, as shown in the
following image.

2. Click Save to save the activity.


3. Click Action and then click Run to execute the activity and see the output. In
the output, the name Pega is displayed instead of Robotics.

You might also like