cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on conditional flow

smurfs
Champ in-the-making
Champ in-the-making
I am new to activiti. I am trying to create a conditional sequence flow with a condition from a VO object. it throws an error on deployment.

If i try as ${type.equals("DEBIE")} , it works.
If i try as ${nameVO.type.equals("DEBIE")} , it does not work.
Can anyone please help me on resolving this.
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

provide stack trace or jUnit test.(http://forums.activiti.org/content/sticky-how-write-unit-test)

Regards
Martin

Hi
If i give as below, then it does not deploy from the activity designer. Can you please let me know what is the issue or is there any syntax issue
<sequenceFlow>
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${nameVO.type.equals("XXX")}]]></conditionExpression>
    </sequenceFlow>

If i try as below, then it works: But, i need to do through a bean.

<sequenceFlow>
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${type.equals("XXX")}]]></conditionExpression>
</sequenceFlow>

jbarrez
Star Contributor
Star Contributor
As Martin said, we do need a stacktrace to know what is happening. Is the 'type' variable available, for example?