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="serialorparallel"> <event type="node-enter"> <script> <variable name="wcmwf_reviewerCnt" access="write"/> <variable name="wcmwf_approveCnt" access="write"/> <variable name="wcmwf_reviewType" access="write"/> <expression> wcmwf_reviewerCnt = bpm_assignees.size(); wcmwf_approveCnt = 0; wcmwf_reviewType = wcmwf_submitReviewType; </expression> </script> </event> <transition name="serial" to="submitserialreview" /> <transition name="parallel" to="submitparallelreview"> <condition>#{wcmwf_reviewType == "Parallel"}</condition> </transition> </decision>
<script> <variable name="wcmwf_reviewerCnt" access="write"/> <variable name="wcmwf_approveCnt" access="write"/> <variable name="wcmwf_reviewType" access="write"/> <variable name="initiator" access="write"/> <variable name="count" access="write"/> <expression> wcmwf_reviewerCnt = bpm_assignees.size(); wcmwf_reviewType = wcmwf_submitReviewType; initiator = initiator.properties["cm:name"]; for(count = 0; count < wcmwf_reviewerCnt; count++) { if(initiator == bpm_assignees.get(count)) { break; } } wcmwf_approveCnt = count + 1; </script>
javax.faces.FacesException: Error calling action method of component with id dialog:finish-button caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{DialogManager.finish} caused by: org.alfresco.error.AlfrescoRuntimeException: 05240005 Failed to submit to workflow caused by: org.alfresco.service.cmr.workflow.WorkflowException: 05240004 Failed to signal transition null from workflow task jbpm$20. caused by: org.jbpm.graph.def.DelegationException: Sourced file: inline evaluation of: `` wcmwf_reviewerCnt = bpm_assignees.size(); w . . . '' : Not an array caused by: Sourced file: inline evaluation of: `` wcmwf_reviewerCnt = bpm_assignees.size(); w . . . '' : Not an array : at Line: 4 : in file: inline evaluation of: `` wcmwf_reviewerCnt = bpm_assignees.size(); w . . . '' : [ "cm:name" ]
<script> <variable name="wcmwf_reviewerCnt" access="write"/> <variable name="wcmwf_approveCnt" access="write"/> <variable name="wcmwf_reviewType" access="write"/> <variable name="initiatorName" access="write"/> <variable name="count" access="write"/> <expression> wcmwf_reviewerCnt = bpm_assignees.size(); wcmwf_reviewType = wcmwf_submitReviewType; initiatorName = initiator.properties.get("firstName"); for(count = 0; count < wcmwf_reviewerCnt; count++) { if(initiatorName == bpm_assignees.get(count)) { break; } } wcmwf_approveCnt = count +1; </expression> </script>
if(initiatorName == bpm_assignees.get(count))