Automic Community

Expand all | Collapse all

Skip all jobs in Workflow if the First job failes

  • 1.  Skip all jobs in Workflow if the First job failes

    Posted 06-12-2019 11:01 AM
    ​How can we SKIP all the Jobs in workflow if the First job failed ?  In task Properties through Dependencies tab we can skip the immediate successor job based on the status of First Job but for the other Jobs in workflow how to make decision based on the First Job ?

    In Post condition tab there is option to CANCEL, ABORT the entire Parent workflow but no option to SKIP

    #automicwork #taskproperties #WorkflowDependencies #WorkflowPreconditions #workflowpostcondtions
    ​​​​​


  • 2.  RE: Skip all jobs in Workflow if the First job failes

    Posted 06-13-2019 04:24 AM
    Dear Sundaramoorthy,

    In time&dependencies tab you can set the matched status of the previous task to ENDED_OK and "ELSE Skip this task". When the previous task is skipped, it is not in the status of ENDED_OK, therefore the following task is skipped also. The skipped status is included in ANY_OK, so that would not be the desired check.

    Have a look on the Page "System Return Codes of Executable Objects" in the documentation of your version (just search for it).

    Regards, Nicole


  • 3.  RE: Skip all jobs in Workflow if the First job failes

    Posted 06-13-2019 04:24 AM
    Dear Sundaramoorthy,

    you can check in the time&dependencies tab for ENDED_OK of the previous task and set ELSE "skip this task" for all following tasks.
    The SKIPPED status is not included in the ENDED_OK check, so the folloing task will be skipped.

    Search for the page "System Return Codes of Executable Objects" in the documentation of your engine version to learn more about it.

    Regards, Nicole


  • 4.  RE: Skip all jobs in Workflow if the First job failes

    Posted 06-13-2019 04:42 AM
    Hello,

    we always use a sub-workflow for such dependencies. All jobs which should skip are in this sub-workflow and the sub-workflow check the status of the first job.

    Regards,
    Bernhard