[jboss-user] [JBoss jBPM] - Re: Decision Handler to result in default transition
kukeltje
do-not-reply at jboss.com
Sat Dec 13 15:21:27 EST 2008
anonymous wrote : Was this intentionally taken away?
I think it is, not sure
anonymous wrote :
| Is there a way to accomplish the same behavior, which is to default the "default" transition if the DecisionHandler doesn't evaluate?
I think not. Personally I'd have my decisionhandler return what I think should be the transition if no other can be selected. I never rely on in explicit 'default transitions'. In explicit in the sense that it is not explicitly declared in the process, but it is the bahaviour of jBPM. Suppose the 'definition' of default transition changes (which it will not easily, but you never know) then you have no clue why your process behaviour changes.
Regarding the last code snippet, that is not for decisionhandlers or expressions (at least not anymore as you experience), but for the situation when conditions on transitions are used. If none of the conditions evaluates to true, the default transition is taken since a transition has to be taken. In a decisionhandler or expressions it is up to you to make sure one is taken
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196367#4196367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196367
More information about the jboss-user
mailing list