Re: [scxml] including chunks of scxml code.

2007-01-05 Thread Nestor Urquiza
Hi, I am sorry I could not reply before. Then, Using templating thru //state/@src is useful for including reusable FSM as mean of whole states. XInclude/XML Entities are useful for including chunks of SCXML logic. I am not sure how the first works but seems like commons-scxml would parse just

Re: [scxml] including chunks of scxml code.

2007-01-05 Thread Nestor Urquiza
Hi Rahul, While java can be used of course and I use it for a lot of helper methods like the one you propose for the given example, it breaks the needed separation of concerns for my case. The rule about the name of the pet can change tomorrow when a new parameter is added to the equation, let

Re: [scxml] including chunks of scxml code.

2007-01-05 Thread Nestor Urquiza
Another interesting tag is script which eventually would allow to accomplish any complex calculations and of course supports functions because it uses ECMAScript however I read at w3c: script is included for reasons of backward compatability with CCXML. It may be removed in future versions of

Re: [scxml] including chunks of scxml code.

2007-01-05 Thread Rahul Akolkar
On 1/5/07, Nestor Urquiza [EMAIL PROTECTED] wrote: Another interesting tag is script which eventually would allow to accomplish any complex calculations and of course supports functions because it uses ECMAScript however I read at w3c: script is included for reasons of backward compatability

Re: [scxml] including chunks of scxml code.

2007-01-05 Thread Nestor Urquiza
I'll go for Entities and in the meanwhile I'll request/suggest to SCXML spec to include at least one way for code reuse thru functions/templates. Thanks, -Nestor --- Rahul Akolkar [EMAIL PROTECTED] wrote: On 1/5/07, Nestor Urquiza [EMAIL PROTECTED] wrote: Hi Rahul, While java can be

[scxml] including chunks of scxml code.

2006-11-01 Thread Nestor Urquiza
Hello guys, I need to apply DRY ;-) so I do not want to be duplicating SCXML code that is to be included in many different states. Just wondering about the options we have here: 1)XInclude 2)A special tag from scxml??? 3) Any other idea? Thanks, -Nestor

Re: [scxml] including chunks of scxml code.

2006-11-01 Thread Craig McClanahan
On 11/1/06, Nestor Urquiza [EMAIL PROTECTED] wrote: Hello guys, I need to apply DRY ;-) so I do not want to be duplicating SCXML code that is to be included in many different states. Just wondering about the options we have here: 1)XInclude 2)A special tag from scxml??? 3) Any other idea?

Re: [scxml] including chunks of scxml code.

2006-11-01 Thread Rahul Akolkar
On 11/1/06, Craig McClanahan [EMAIL PROTECTED] wrote: On 11/1/06, Nestor Urquiza [EMAIL PROTECTED] wrote: Hello guys, I need to apply DRY ;-) so I do not want to be duplicating SCXML code that is to be included in many different states. Just wondering about the options we have here: