Checking the response from a child activity
After a parent has requested a child activity to be run, it must check the response from the child by issuing a CHECK ACTIVITY command to find out whether the child activity succeeded.
The response to the request to run the activity does not contain any information about the success or failure of the child activity itself, only about the success or failure of the request to run it.
- When the parent is reattached due to the completion event of the child firing. See Reattachment events and activity activation.
- When the parent is reattached due to the expiry of a timer.
If the child activity needs more than one processing step (transaction) to complete its work, on return from its first activation it is not complete. The CHECK ACTIVITY command returns the current completion status.
Following the execution of a CHECK ACTIVITY command issued by its parent, if the child activity has completed, its completion event, and its name, is deleted by CICS. The event cannot be deleted in any other way, because it is the completion of the activity.
For further information about the uses of the CHECK ACTIVITY command, see Dealing with BTS errors and response codes.