cancel
Showing results for 
Search instead for 
Did you mean: 

Node decision not working

iblanco
Confirmed Champ
Confirmed Champ
I'm trying to design an advanced workflow that uses a decision node.

I can't manage for the decision node to act as expected ( take one transition or another based on an expression ).

In my last attempt I have simplified the decision node to this:


   <decision name="Tipo">
      <transition to="NotificarReclamacion" name="esReclamacion">
         <condition>#{false};</condition>
      </transition>
      <transition to="NotificarSugerencia" name="esSugerencia">
         <condition>#{true};</condition>
      </transition>
   </decision>
Obviously this node should alwarys transit to NotificarSugerencia, but it doesn't, it instead goes to NotificarReclamacion which is the default transition.

Is it a horrible bug in the jBPM engine or is it a horrible bug in my workflow ?

Thanks.
2 REPLIES 2

tfrith
Champ on-the-rise
Champ on-the-rise
Not sure if this is the problem, but try removing the semi-colon in the condition.

Change
<condition>#{false};</condition>
<condition>#{true};</condition>

to
<condition>#{false}</condition>
<condition>#{true}</condition>

Hope it works.

iblanco
Confirmed Champ
Confirmed Champ
Thanks.

I made hundreds of experiments and suddenly at last I managed for it to work but I was so confused that I didn't notice what was the change I made for it to work. I don't know either if the ; is the point but the fact is that my working workflows doesn't use them either, so… that could be the reason.