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.
<decision name="isApproved"> <event type="node-enter"> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> <[b]variable[/b] name="wfl_checkStatus" access="read, write"/> <expression> wfl_checkStatus = bpm_package.children[0].properties["ck:Status"]; logger.log("Status "+wfl_checkStatus); </expression> </script> </action> </event> <transition name="approve" to="published" > <condition>#{wfl_checkStatus == "Waiting for Validation"}</condition> </transition> <transition name="Re-edit" to="editing" > <condition>#{wfl_checkStatus != "Waiting for Validation"}</condition> </transition> </decision>