0 Replies Latest reply on Apr 23, 2010 12:39 PM by Edward Mallia

    Conditional Transitions (jBPM 3.3.1GA)

    Edward Mallia Newbie

      Hi all,

       

      I have a node with three outgoing conditional transitions.  The idea is that by firing one event, jBPM will transition to the appropriate state based on the conditions applied to the transitions.      

       

      However this is not happening.  jBPM picks up the first transition with the given name, checks the condition on it, and if condition evaluates to false it throws an exception (Exception in thread "main" org.jbpm.JbpmException: transition condition #{ ... } evaluated to 'false') and aborts the transition.

       

       

      For example, 

      I have the following states,

        • state A transitions to state B on event X if (var == foo)
        • state A transitions to state C on event X if (var == bar)
        • state A transitions to state D on event X if (var == foobar)

      If I fire event X (and var = foobar), jBPM will only pick up the transition going to state B and fail because var != foo

       

       

      Why is this so and is there a way around it?

       

       

      Thanks

       

      Ed