02-28-2012 03:56 AM
<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
03-08-2012 08:31 AM
package ch.custom.workflowUtils;
public class MathUtils {
public int abs(int a) {
return Math.abs(a);
}
…
}
2. Register this class as a Spring bean, for example:<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>
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.