I have tried this by keeping Block as a final action in case of "ANY-ABEND" and I could see that both the workflows are blocked. However, the child workflow is showing as ENDED NOT OK - ABORTED.
Below is the post condition that I've defined in both the tasks
You can also try "Cancel Parent Workflow" in the post condition of the job so that the For-Each Workflow will get cancelled that will block the parent standard workflow.
------------------------------
Bharath B.
------------------------------
Original Message:
Sent: 08-07-2020 05:55 PM
From: Jason Higgins
Subject: ForEach workflow blocking
I have a standard workflow that contains a number of tasks, one of which is a ForEach workflow. The ForEach workflow only has one task and I have set the postcondition of the task to block if the task ends with a status of ANY_ABEND. This is working but the parent workflow still shows a status of active when the ForEach workflow is blocked. Is there a way to change the status of the parent workflow to blocked as well when the ForEach workflow is blocked?