02-19-2013 04:16 PM
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName="activiti$activitiParallelGroupReview";
workflow.parameters["bpm:workflowDescription"] = node.name;
workflow.parameters["bpm:groupAssignee"]=groupAssignee;
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.parameters["sendEMailNotifications"] = true;
workflow.execute(node);
02-21-2013 05:46 AM
var workflowDefinition = workflow.getDefinitionByName("activiti$kapTestProcess");
var workflowPackage = workflow.createPackage();
var workflowParameters = [];
workflowParameters["bpm:workflowDescription"] = "Bitte prüfen!" ;
workflowParameters["test"] = "das ist ein test";
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 3);
workflowParameters["bpm:workflowDueDate"] = futureDate;
workflowParameters["bpm:dueDate"] = futureDate;
workflowParameters["bpm:workflowPriority"] = 1;
var workflowPath = workflowDefinition.startWorkflow(workflowPackage, workflowParameters);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.