Automic Workload Automation

Expand all | Collapse all

Cancel Recursive Script Function

Jump to Best Answer
  • 1.  Cancel Recursive Script Function

    Posted 08-04-2019 10:44 AM
    Hello All,

    I'm wondering if we have any Script Function to Cancel all the sub tasks of a workflow recursively.

    Scenario: I've created a Script with Prompt in it which will take the workflow name as input. Now I need to cancel that workflow recursively and deactivate it. I am getting the Runid using GET_UC_OBJECT_NR and cancelling the workflow using CANCEL_UC_OBJECT. However, it's cancelling only the level 1 tasks (Not the tasks of a sub-workflow). I have also observed that, sometimes, the GET_UC_OBJECT_NR is giving previous runid instead of the latest one.

    Thanks for your help.

    ------------------------------
    Bharath B
    ------------------------------


  • 2.  RE: Cancel Recursive Script Function
    Best Answer

    Posted 08-05-2019 01:36 AM
    There is a parameter to that function that cancels recursively in a workflow (I think it's ALL).

    ------------------------------
    Swisscom & WorkflowCommander
    ------------------------------