05-22-2013 09:08 AM
<association name="dl:docContractFile">
<title>Contract file</title>
<source>
<mandatory>true</mandatory>
<many>false</many>
</source>
<target>
<class>cm:cmobject</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
<field id="dl:docContractFile">
<control>
<control-param name="startLocation">{doclib}</control-param>
</control>
</field>
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "activiti$activitiParallelReview";
workflow.parameters["wf:requiredApprovePercent"] = 100;
workflow.parameters["bpm:workflowDescription"] = "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u0439\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 ";
workflow.parameters["bpm:assignees"] = document.assocs["dl:docTaskAssignees"];
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.parameters["bpm:sendEMailNotifications"] = true;
workflow.execute(document);
workflow.execute(document.assocs["dl:docContractFile"]);
01-11-2016 07:38 AM
06-21-2017 12:05 AM
Greetings, have you solved the issue? I am trying to get similar workflow working too and would like to seek some advice.
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.