commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jocke eriksson <jock...@gmail.com>
Subject Re: FW: [SCXML] Problem passing data through the SCXML
Date Thu, 17 Jun 2010 08:02:05 GMT
You have to use the evaluator.

evaluator = scInstance.getEvaluator();
ctx = scInstance.getRootContext();

Object o = evaluator.eval(ctx, NameOfValueInDataModel);

Jocke

2010/6/17 Jorge Moratinos <jorgems101@hotmail.com>

>
>
>
>
>
>
>
>
>
> Hi!
>
> I`ve a problem with the SCXML, i use custom actions, and everything is
> fine, but, if i have to insert a data from the model data i had generated
> with the next code line:
>
>
>
> <cs:Myfunction valueA="NameOfValueInDataModel"/>
>
>
>
> NameOfValueDataModel contains the value passed at payload in one
> transition. After the execution of this line, the value of valueA in my
> class are the string "NameOfValueInDataModel", not the value contained at
> context variable.
>
>
>
> Please help me!
>
>
>
> Thanks
>
>
> _________________________________________________________________
> Los cochazos de los famosos Patrick Dempsey, Tom Cruise o Michael Douglas
> presumen de automóvil
> http://motor.es.msn.com/coches/galeria.aspx?cp-documentid=152634169
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message