02-05-2009 10:01 AM
<type name="wf:reviewTask">
<parent>bpm:workflowTask</parent>
<properties>
<property name="wf:foo">
<type>d:text</type>
</property>
</properties>
</type>
<config evaluator="node-type" condition="wf:reviewTask" replace="true">
<property-sheet>
<!– Existing properties omitted for example purpose –>
<show-property name="wf:foo" display-label="Foo" />
</property-sheet>
</config>
<task-node name="review">
<task name="wf:reviewTask" swimlane="reviewer" />
<transition name="approve" to="approved">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
logger.log("wf_foo=" + wf_foo);
</script>
</action>
</transition>
<transition name="reject" to="rejected" />
</task-node>
<task-node name="review">
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
wf_foo = “bar”;
</script>
</action>
</event>
<task name="wf:reviewTask" swimlane="reviewer" />
<transition name="approve" to="approved" />
<transition name="reject" to="rejected" />
</task-node>
03-03-2009 09:30 AM
06-12-2009 10:26 AM
<task-node name="review">
<task name="wf:reviewTask" swimlane="reviewer" />
<event type="task-create">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
taskInstance.setVariable('bpm_assignee', people.getPerson('username').nodeRef);
</script>
</action>
</event>
</task-node>
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.