As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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…