commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Hotmail Trabajo <jorgems...@hotmail.com>
Subject Re: [SCXML] Problem passing data through the SCXML
Date Thu, 17 Jun 2010 10:01:49 GMT

Thanks jocke, Now is working!!


Jorge

El 17/06/2010, a las 10:02, jocke eriksson <jocke29@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 <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
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message