Retrying failed activities

If a child activity fails, it may be appropriate to retry it. The parent should (if it has not already done so) issue a CHECK ACTIVITY command to check the current completion status of the child activity.

To retry a child activity that has failed:

  1. Issue a RESET ACTIVITY command. The child activity is reset to its initial state: its completion event is added to the parent’s event pool, with the status set to NOTFIRED; any children of the child activity are deleted. Note that the child activity’s data-containers are not disturbed.
  2. Issue a RUN ACTIVITY command. The child activity is invoked with a DFHINITIAL event.

Related concepts
Using the BTS API to write business applications
The Sale example application
Related tasks
Checking the response from a synchronous activity
Checking the response from an asynchronous activity
Getting details of activity ABENDs
Related reference
Overview of BTS API commands
BTS application programming commands
[[ Contents Previous Page | Next Page Index ]]