AnsweredAssumed Answered

Problem with Indexed condition expression

Question asked by dwoodbury on Mar 18, 2012
Latest reply on Mar 19, 2012 by dwoodbury
Hello:

I'm looking for a way to implement an indexed conditional within a multi-instance sub-process.

The conditional expression is associated with a sequence flow leaving a gateway.

And, I'd like to use the multi-instance loopCounter value to test a condition variable associated with the sub-process.

For example ${approved.loopCounter} would test the value of the process instance variable approved.2 when loopCounter value is 2.

However, when the conditional defined in this manner is evaluated, Activiti throws the following exception:

Class
org.activiti.engine.impl.javax.el.PropertyNotFoundException

Message
Could not find property 2 in class java.lang.Boolean

Is there a way to accomplish what I am trying to do?  I've tried many permutations of the variable definition and conditional expression but cannot find the way to do this.

Thank you!

David Woodbury

Outcomes