Re: Re: [scxml] passing datamodel elements into method call

2014-10-08 Thread R.C. Hoekstra
Hi Rinke, I think you would get a node if you used DataNode function instead: cs:var name=treatment1Name expr=DataNode(treatmentData,'treatments/treatment[1]/name') / Could you try that? Regards, Woonsan Hi Woonsan, thanks for your answer. But are you sure about that? If I use it like

Re: Re: [scxml] passing datamodel elements into method call

2014-10-08 Thread Woonsan Ko
Hi Rinke, Sorry for my confusion. Indeed, DataNode function seems to exist only for assign element. Regarding other possible options, I think you can set a holder object (named treatmentDataHolder for instance) in the root context before execution, and you can invoke the holder's method to

Re: [scxml] passing datamodel elements into method call

2014-10-08 Thread Ate Douma
On 08-10-14 11:31, R.C. Hoekstra wrote: Hi Rinke, I think you would get a node if you used DataNode function instead: cs:var name=treatment1Name expr=DataNode(treatmentData,'treatments/treatment[1]/name') / Could you try that? Regards, Woonsan Hi Woonsan, thanks for your answer. But are you