User development,
A new message was posted in the thread "Decision expression can not return a
Boolean?":
http://community.jboss.org/message/529035#529035
Author : derek lee
Profile :
http://community.jboss.org/people/yushanyuan
Message:
--------------------------------------------------------------
Hi,
just as the title. My Decision expression is :#{true},
and the exception is :rg.jbpm.api.JbpmException: expression '#{true}' in decision
'decision' returned java.lang.Boolean instead of a transitionName (String): true
i reviewed the sourccode , in the line 51, there is a if ,
if ( (result!=null)
&& (! (result instanceof String))
)
throw .....
does it mean the return must be a String ?
if that is true , why there is a transitionName = (String) result in line 56
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/529035#529035