"freak182" wrote : Hello,
|
| I change my expression to:
|
|
| |
| | <decision name="Collateral" expression='#{ collateral >
0 }'>
| | <transition to="fork1"
name="true"></transition>
| | <transition to="NO_COLLATERAL"
name="false"></transition>
| | </decision>
| |
| | final Map<String, Serializable> param = new HashMap<String,
Serializable>();
| | param.put("collateral", new Integer(1));
| |
| |
|
| and it work fine. Now I am just confused that i cannot use string comparisson in
expression? please advice.
|
| Thanks a lot.
| Cheers.
|
|
|
Hello,
in my opinion this syntax is more readable:
|
| <decision name="Collateral" expression='#{ collateral ==
"true" ? "true" : "false" }'>
| <transition to="fork1" name="true"></transition>
| <transition to="NO_COLLATERAL"
name="false"></transition>
| </decision>
|
|
The expression-based decisions must return a transition name.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249864#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...