AnsweredAssumed Answered

Using Math. functions

Question asked by dranakan on Feb 27, 2012

I would to use the absolute value (Math.abs) in my worklow. I have written like this :

<sequenceFlow id="flow9" name="" sourceRef="exclusivegateway3" targetRef="modifyReviewBoss1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sgfwf_approveRejectOutcome == 'Approve' && sgfwf_amount  > Math.abs(sgfwf_condition1) } ]]></conditionExpression>

But I get this :

 2012-02-27 07:57:28,551  DEBUG [repo.jscript.ScriptLogger] [http-8080-22] org.activiti.engine.ActivitiException: Unknown property used in expression

How can I use Math.X functions ?

Thank you.