vCO Workflow Script to Add a Scheduled Task to vCO

The following script adds a scheduled task to vCO

var dteDateTime;
dteDateTime = new Date();

var intMinutes;
intMinutes = dteDateTime.getMinutes() + 15;

var dteWorkflowScheduleDate;
dteWorkflowScheduleDate = dteDateTime;

var objWorkflowProperties = new Properties();
objWorkflowProperties.put("strProduct", strProduct);
objWorkflowProperties.put("objVclVAppTemplate", objVclVAppTemplate);

var objTask;
objTask = objWorkflow.schedule(objWorkflowProperties, dteWorkflowScheduleDate);

Leave a Reply