[jboss-user] [JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in

avbentem do-not-reply at jboss.com
Sun Feb 18 16:34:10 EST 2007

Another question: how to write the expression "true" if the following is not considered true...?
<condition expression="#{true}"/>
(http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html#wp77280 defines the literal true)

Read on for yet another problem in my quest to extend the websales sample for a demo:

If I understand correctly then
<decision name="Fits in mailbox">
  |   <transition name="Yes" to="ship item">
  |     <condition expression="#{false}"/>
  |   </transition>
  |   <transition name="No" to="Inform customer"/>
  | </decision>
should execute the second transition, which has no condition and thus is the 'otherwise' branch. However, again I get 
[Decision] decision didn't select transition, taking default Transition(Yes)
But... I get the very same message using
<condition expression="#{true}"/>
...so the above might just be caused by my trouble with decisions in the workflow. If not, then maybe I'll investigate the cause later on, or repost this in a thread of its own.

Documentation: http://docs.jboss.org/jbpm/v3/userguide/jpdl.html#condition.element states
anonymous wrote : The contents of the condition element is a jPDL expression that should evaluate to a boolean. A decision takes the first transition (as ordered in the processdefinition.xml) for which the expression resolves to true. If none of the conditions resolve to true, the default leaving transition (== the first one) will be taken.
Another section of the same page at http://docs.jboss.org/jbpm/v3/userguide/jpdl.html#decision.element claims
anonymous wrote : The leaving transitions of a decision can be extended with a condition. The decision will look for the first transition for which the condition evaluates to true. A transition without a condition is considered to evaluate to true (to model the 'otherwise' branch).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018593#4018593

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018593

More information about the jboss-user mailing list