02-18-2011 06:48 AM
<transition name="Geology" to="geologyTask">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<expression>
bpm_package.children[0].properties[cv:tutor]="John";
bpm_package.children[0].properties[cv:department]="Geology";
bpm_package.children[0].save();
</expression>
</script>
</action>
</transition>
04-14-2011 04:38 AM
<start-state name="start">
<task name="eamswf:submitTask" swimlane="initiator"/>
<transition name="" to="task" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<expression>
bpm_package.children[0].properties["rma:restrictionPublicityClass"] = eamswf_publicityClass;
bpm_package.children[0].properties["rma:restrictionSecurityPeriodEnd"] = eamswf_securityPeriod;
bpm_package.children[0].save();
</expression>
</script>
</action>
</transition>
</start-state>
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.