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.
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wfl:lifecycleapproval"> <swimlane name="initiator" /> <start-state name="start"> <task name="wf:submitReviewTask" swimlane="initiator" /> <event type="node-leave"> <!– Call script once the workflow package exists i.e. on node-leave –> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <!– Apply the Workflow Lifecycle Aspect (wfl:status) if not set already. Note: The default wfl:status property is draft –> <script> for (var i = 0; i < bpm_package.children.length; i++) { if (!bpm_package.children[i].hasAspect("wfl:status")) { bpm_package.children[i].addAspect("wfl:status"); bpm_package.children[i].checkout(bpm_context); } }