Deleting sub-scenarios
To delete a sub-scenario when it reaches its end state:
1. Check the output feed for a true value for the instance ended field.
2. Call the delete operation.
The output event that the scenario block sends to its output feed to indicate that the instance has finished processing also makes the completed instance the context instance. Consequently, you do not need to set the instance id parameter before you call the delete operation.