vCO Workflow Script to Initiate a Workflow from another Workflow

The following script enables a workflow to be initiated from another workflow

 

 

var objProperties;
objProperties = new Properties();
objProperties.put("strParameter", strParameter);
objProperties.put("intParameter", intParameter);
try
{
var objWorkflowToken;
objWorkflowToken = objWorkflow.execute(objProperties, strWorkflowUsername, strWorkflowPassword);
}
catch(objException)
{
Server.log(objException);
}

Leave a Reply