How To Use Step Page
How To Use Step Page
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
8. 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.
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. In the Steps tab of the activity rule, add the step page in the First Step, as
shown in the following image.
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.
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.
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.