AnsweredAssumed Answered

Using Math. functions

Question asked by dranakan on Feb 28, 2012
Latest reply on Mar 8, 2012 by dranakan
Hello,

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>
    </sequenceFlow>

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.

(post on activiti forum : http://forums.activiti.org/en/viewtopic.php?f=4&t=3539)

Outcomes