You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jorge Moratinos <jo...@hotmail.com> on 2010/06/17 08:55:22 UTC
FW: [SCXML] Problem passing data through the SCXML
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
Re: [SCXML] Problem passing data through the SCXML
Posted by Jorge Hotmail Trabajo <jo...@hotmail.com>.
Thanks jocke, Now is working!!
Jorge
El 17/06/2010, a las 10:02, jocke eriksson <jo...@gmail.com>
escribió:
> You have to use the evaluator.
>
> evaluator = scInstance.getEvaluator();
> ctx = scInstance.getRootContext();
>
> Object o = evaluator.eval(ctx, NameOfValueInDataModel);
>
> Jocke
>
> 2010/6/17 Jorge Moratinos <jo...@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
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: FW: [SCXML] Problem passing data through the SCXML
Posted by jocke eriksson <jo...@gmail.com>.
You have to use the evaluator.
evaluator = scInstance.getEvaluator();
ctx = scInstance.getRootContext();
Object o = evaluator.eval(ctx, NameOfValueInDataModel);
Jocke
2010/6/17 Jorge Moratinos <jo...@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
>