08-12-2010 09:01 AM
08-12-2010 09:33 AM
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review";
workflow.parameters["bpm:workflowDescription"] = document.name;
workflow.parameters["bpm:assignee"] = person;
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.execute(document);
<type name="bpm:startTask">
<parent>bpm:workflowTask</parent>
<properties>
<!– Description for the workflow as a whole –>
<property name="bpm:workflowDescription">
<type>d:text</type>
<constraints>
<constraint ref="bpm:allowedDescriptionLength"/>
</constraints>
</property>
<!– Due date for the workflow as a whole –>
<property name="bpm:workflowDueDate">
<type>d:date</type>
</property>
<!– Priority for the workflow as a whole –>
<property name="bpm:workflowPriority">
<type>d:int</type>
<default>2</default>
<constraints>
<constraint ref="bpm:allowedPriority" />
</constraints>
</property>
</properties>
<overrides>
<property name="bpm:packageActionGroup">
<default>add_package_item_actions</default>
</property>
<property name="bpm:packageItemActionGroup">
<default>start_package_item_actions</default>
</property>
</overrides>
</type>
08-12-2010 10:30 AM
08-12-2010 03:53 PM
08-13-2010 03:21 AM
08-13-2010 05:50 AM
08-13-2010 08:16 AM
08-16-2010 04:37 AM
08-18-2010 04:16 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.