04-17-2008 05:40 AM
<!–**************************–>
<!–** <Decision> **–>
<!–** isapproved **–>
<!–**************************–>
<decision name="isapproved">
<event type="node-enter">
<action class="lpr.alfresco.repo.workflow.jbpm.WriteInfo">
<type>Decision</type>
<name>isapproved</name>
<disable>false</disable>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_requiredApprobatorPercent" access="write"/>
<expression>lwf_requiredApprobatorPercent = lwf_requiredApprovalPercent;</expression>
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_approbatorCount" access="write"/>
<expression>lwf_approbatorCount = lwf_approvalAssignees.size();</expression>
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_actualApprobatorPercent" access="Write"/>
<expression>lwf_actualApprobatorPercent = ((lwf_approvalCount * 100) / lwf_approbatorCount);</expression>
</script>
</action>
<action class="lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert">
<var>pdf</var>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
logger.log("lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert return: " + pdf);
</script>
</action>
</event>
<transition name="reject" to="rejected"/>
<!– transition name="approve" to="approvedApproval"–>
<transition name="approve" to="qualityrequired">
<condition>#{pdf == 'false'}</condition>
<!– condition>#{lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent}</condition–>
</transition>
<transition name="published" to="published">
<condition>#{pdf == 'true'}</condition>
</transition>
</decision>
<action class="lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert">
<var>pdf</var>
</action
<transition name="approve" to="qualityrequired">
<condition>#{pdf == 'false'}</condition>
<!– condition>#{lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent}</condition–>
</transition>
<transition name="published" to="published">
<condition>#{pdf == 'true'}</condition>
<!– condition>#{lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent}</condition–>
</transition>
<condition>#{lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent}</condition>
04-17-2008 06:52 AM
<!–**************************–>
<!–** <Decision> **–>
<!–** isapproved **–>
<!–**************************–>
<decision name="isapproved">
<event type="node-enter">
<action class="lpr.alfresco.repo.workflow.jbpm.WriteInfo">
<type>Decision</type>
<name>isapproved</name>
<disable>false</disable>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_requiredApprobatorPercent" access="write"/>
<expression>lwf_requiredApprobatorPercent = lwf_requiredApprovalPercent;</expression>
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_approbatorCount" access="write"/>
<expression>lwf_approbatorCount = lwf_approvalAssignees.size();</expression>
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_actualApprobatorPercent" access="Write"/>
<expression>lwf_actualApprobatorPercent = ((lwf_approvalCount * 100) / lwf_approbatorCount);</expression>
</script>
</action>
<!– action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
for (var i = 0; i < bpm_package.children.length; i++)
{
logger.log("Enter Node Is Approved : " + bpm_package.children[i].properties["lpr:DocumentStatus"]);
}
</script>
</action–>
</event>
<transition name="reject" to="rejected"/>
<!– transition name="approve" to="approvedApproval"–>
<transition name="approve" to="qualityrequired">
<condition>#{lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent}</condition>
</transition>
</decision>
<!–**************************–>
<!–** <Decision> **–>
<!–** qualityrequired **–>
<!–**************************–>
<decision name="qualityrequired">
<event type="node-enter">
<action class="lpr.alfresco.repo.workflow.jbpm.WriteInfo">
<type>Decision</type>
<name>qualityrequired</name>
<disable>false</disable>
</action>
<action class="lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert">
<var>pdf</var>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
logger.log("lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert return: " + pdf);
</script>
</action>
</event>
<transition name="quality" to="startquality"/>
<!– transition name="approve" to="approvedApproval"–>
<transition name="published" to="published">
<condition>#{pdf == "true"}</condition>
</transition>
</decision>
04-17-2008 07:32 AM
<!–**************************–>
<!–** <Decision> **–>
<!–** isapproved **–>
<!–**************************–>
<decision name="isapproved">
<event type="node-enter">
<action class="lpr.alfresco.repo.workflow.jbpm.WriteInfo">
<type>Decision</type>
<name>isapproved</name>
<disable>false</disable>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_requiredApprobatorPercent" access="write"/>
<expression>lwf_requiredApprobatorPercent = lwf_requiredApprovalPercent;</expression>
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_approbatorCount" access="write"/>
<expression>lwf_approbatorCount = lwf_approvalAssignees.size();</expression>
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="lwf_actualApprobatorPercent" access="Write"/>
<expression>lwf_actualApprobatorPercent = ((lwf_approvalCount * 100) / lwf_approbatorCount);</expression>
</script>
</action>
<action class="lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert">
<var>pdf</var>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
logger.log("lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert return: " + pdf);
</script>
</action>
</event>
<transition name="reject" to="rejected"/>
<transition name="quality" to="startquality">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
logger.log("lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert (quality) return: " + pdf);
</script>
</action>
<condition>expression=#{(pdf == "false") and (lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent)}</condition>
</transition>
<transition name="published" to="published">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
logger.log("lpr.alfresco.repo.workflow.jbpm.CheckPDFConvert (published) return: " + pdf);
</script>
</action>
<condition>expression=#{(pdf == "true") and (lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent)}</condition>
</transition>
</decision>
<condition>expression=#{(pdf == "true") and (lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent)}</condition>
<condition>expression=#{(pdf == "false") and (lwf_actualApprobatorPercent >= lwf_requiredApprobatorPercent)}</condition>
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.