Hi, Welcome back! You are right and I have been returning boolean for example without any problems ... What I meant to say was that given:
<n:assign name="result" expr="myClassInContext.myStringMethod()"/> if myClassInContext.myStringMethod() returns null then you get something like: "ErrorReporter @ EXPRESSION_ERROR (java.lang.NullPointerException):" This is because of an exception in SCXMLSemanticsImpl#executeActions(): org.apache.commons.scxml.SCXMLExpressionException: java.lang.NullPointerException Thanks for looking at this. Nestor --- Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 7/3/06, Nestor Urquiza <[EMAIL PROTECTED]> wrote: > > Hello fellas, > > Seems like the return value from methods called > from > > the SCXML file must be String right? I am asking > > because of the fact that the below fails if the > method > > createContentRequestTr returns null. > > > <snip/> > > It doesn't have to evaluate to String. It can be > whatever > org.apache.commons.jexl.Expression#evaluate(Context) > returns. > > What is the failure? (sorry, I'm not on a dev box to > try this ATM). > > -Rahul > > > > <n:var name="parentTrId" > > expr="userProfile.createContentRequestTr( > > UserProfileReq, askedContent, askedMkName )"/> > > > > Thanks! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]