AnsweredAssumed Answered

activiti - flow condition from property

Question asked by darionis on Oct 14, 2014
Hello,

I have a simple workflow that uses exclusive gateway and i would like to determine the flow based on content property. I tried something like this:


<sequenceFlow id="flow1" name="check" sourceRef="exclusivegateway1" targetRef="payment">
  <conditionExpression xsi:type="tFormalExpression"><![CDATA[bpm_package.children[0].properties["ns:ammount"] > 500]]></conditionExpression>
</sequenceFlow>


I keep getting errors, but when i write expression like: ammount > 500 (where 'ammount' is workflow property), then it works fine.

I am able to use bpm_package expression in task listeners but it won't work as conditionExpression. Am I doing something wrong? Can I make this work anyhow?

Thanks!

Outcomes