VMware Aria Automation Orchestrator

 View Only
  • 1.  Create scheduled Task and set start behavior to "Start if scheduled in the past"

    Posted Jan 31, 2018 11:51 AM

    Hello,

    is there any solution to create a scheduled task with the scheduled workflow element and set the start behavior automatically to "Start if scheduled in the past"? Or is there the possibility to start all worklfow that are scheduled in the past?

    Thanks for help!

    best regards

    Philipp Buck



  • 2.  RE: Create scheduled Task and set start behavior to "Start if scheduled in the past"

    Broadcom Employee
    Posted Jan 31, 2018 02:18 PM

    Hi,

    When you create scheduled task, the task input parameter has a property to specify task start mode, with possible values normal and start-in-the-past.

    Check this thread for a sample code showing how task creation looks like when task is scheduled by REST API call using XML body - http://https://communities.vmware.com/thread/571389



  • 3.  RE: Create scheduled Task and set start behavior to "Start if scheduled in the past"

    Posted Feb 12, 2018 10:56 AM

    Hi,

    thank you for the helpful answer! But is there a possibility to set the "start mode" (start-in-the-past) within a vRO Workflow maybe like this:

    workflowArguments = new Properties();

    workflowArguments.put('startMode', 'start-in-the-past');

    But that does not work. I don´t want to create scheduled Tasks via REST API..

    Thank you

    best regards

    Philipp



  • 4.  RE: Create scheduled Task and set start behavior to "Start if scheduled in the past"
    Best Answer

    Broadcom Employee
    Posted Feb 12, 2018 11:20 AM

    Hi,

    As far as I know, there is no option to set the 'start mode' value when scheduling a workflow via scripting.



  • 5.  RE: Create scheduled Task and set start behavior to "Start if scheduled in the past"

    Posted Jun 10, 2024 06:17 AM

    You can do this with this seetings.

    var scheduled_task = workflowToExecute.schedule(input, time);
    scheduled_task.restartInPast = true;
    scheduled_task.addParameter("scheduled_task", scheduled_task);