04-19-2011 02:53 PM
var nodeId = args.node_id;
var node = args.node_id;
if (node != null)
{
var workflowType = "jbpm$" + args.type;
var assignTo = people.getPerson(args.assignto);
var description = args.desc;
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = workflowType;
workflow.parameters["bpm:workflowDescription"] = description;
workflow.parameters["bpm:assignee"] = assignTo;
workflow.execute(node.nodeRef);
}
model.assignto = assignTo; //Node Type: {http://www.alfresco.org/model/content/1.0}person Node Ref: workspace://SpacesStore/70a6d0fe-0aa1-452b-97ae-b343e10a2654
model.node = node; //Node Type: {http://www.alfresco.org/model/content/1.0}person Node Ref: workspace://SpacesStore/70a6d0fe-0aa1-452b-97ae-b343e10a2654
model.type = workflowType; //jbpm$2 - the stock review and approve (single user) workflow…
04-20-2011 03:28 AM
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.