VMware Cloud Community
philippbck
Contributor
Contributor
Jump to solution

Create scheduled Task and set start behavior to "Start if scheduled in the past"

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

1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

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

View solution in original post

3 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

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

Reply
0 Kudos
philippbck
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

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