Use the Call instruction with the pxLoadStatus activity to retrieve the status of an external data flow run and store it in a class instance.
Create an instance of the Activity rule by selecting Activity from the Technical category.
In the activity steps, use the Call pxLoadStatus method:
Add the first step:
Method: Page-New
Step page: work
Add the second step:
Method: Property-Set
Step page: work
In the second step, click the arrow to the left of the Method field to specify properties of the work class:
.pyID - Identifier of a work object that represents the external data flow run.
Add the third step:
Method: Call pxLoadStatus
Step page: work
Add the fourth step:
Method: Property-Set
Step page: work
In the fourth step, click the arrow to the left of the Method field to specify the property in which you want to store the status of an external data flow run.
For example, PropertiesName: Local.status, PropertiesValue: .pyStatusWork.
Click Save.