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.
<sequenceFlow id="flow9" name="" sourceRef="exclusivegateway3" targetRef="modifyReviewBoss1"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sgfwf_approveRejectOutcome == 'Approve' && sgfwf_amount > Math.abs(sgfwf_condition1) } ]]></conditionExpression> </sequenceFlow>
2012-02-27 07:57:28,551 DEBUG [repo.jscript.ScriptLogger] [http-8080-22] org.activiti.engine.ActivitiException: Unknown property used in expression
package ch.custom.workflowUtils; public class MathUtils { public int abs(int a) { return Math.abs(a); } … }
<bean id="mathUtils" class="ch.custom.workflowUtils.MathUtils" />
<util:map id="activitiBeanRegistry" map-class="java.util.HashMap"> <entry key="services" value-ref="ServiceRegistry" /> <entry key="mathUtils" value-ref="mathUtils" /> </util:map>
<conditionExpression xsi:type="tFormalExpression">${wf_actualPercent >= mathUtils.abs(1)}</conditionExpression>