Retrieving the status of an external data flow run

Use the Call instruction with the pxLoadStatus activity to retrieve the status of an external data flow run to check it state. You can check if the data flow run is completed or it failed for some reason.

  1. Create an instance of the Activity rule in the Dev Studio navigation panel by clicking Records > Technical > Activity.
  2. In the activity steps, enter the Call pxLoadStatus method:
    1. Add the first step:
      • Method: Page-New
      • Step page: work
    2. Add the second step:
      • Method: Property-Set
      • Step page: work
    3. 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.
    4. Add the third step:
      • Method: Call pxLoadStatus
      • Step page: work
    5. Add the fourth step:
      • Method: Property-Set
      • Step page: work
    6. 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.
  3. Click Save.