Re: [scxml] passing datamodel elements into method call

2014-10-26 Thread Ate Douma
Hi Rinke, I've been diving into the datamodel handling, the Data() function and supporting Builtin Java class the last several days. I've now come to the conclusion that what you are asking for *should* be supported by Commons SCXML, and actually *is* supported through the SCXML

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

2014-10-17 Thread R.C. Hoekstra
Thanks Woonsan, Ate, I think I can work that out. best regards, Rinke - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org

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

Re: [scxml] passing datamodel elements into method call

2014-10-06 Thread Woonsan Ko
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 On Thursday, October 2, 2014 3:53 AM, R.C. Hoekstra r.c.hoeks...@erasmusmc.nl

[scxml] passing datamodel elements into method call

2014-10-02 Thread R.C. Hoekstra
Hi list, Hi people @ scxml commons, Can I pass datamodel nodes to a rootContext var, in order to process it in java? like this: target event=bla cond=agent.check(datamodelNodeRef) .../, where: * agent is an object of a java class made available to the RootContext, having a check method