JBoss Community

Transition rule EL Expression fails

created by Donald Walters in jBPM - View the full discussion

I am using the default expression language to evaluate the rules for my transitions. But, I am getting the following exception each time it tries to process a rule in my decision node.

 

org.jbpm.api.JbpmException: expression condition ' #{response['resultSet'] != null && response['resultSet'][0][3] > 0}' did not return a boolean:  true
        at org.jbpm.pvm.internal.model.ExpressionCondition.evaluate(ExpressionCondition.java:45)
        at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.findTransitionUsingConditions(DecisionConditionActivity.java:62)

org.jbpm.api.JbpmException: expression condition ' #{response['resultSet'] != null && response['resultSet'][0][3] > 0}' did not return a boolean:  true

        at org.jbpm.pvm.internal.model.ExpressionCondition.evaluate(ExpressionCondition.java:45)

        at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.findTransitionUsingConditions(DecisionConditionActivity.java:62)

 

Why is result a string instead of a boolean?

How can I get around this?

Reply to this message by going to Community

Start a new discussion in jBPM at Community