commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Loïc Quéran (JIRA) <>
Subject [jira] Commented: (SCXML-108) Add <script> and EcmaScript + E4X support
Date Wed, 23 Sep 2009 14:11:16 GMT


Loïc Quéran commented on SCXML-108:

More details on my previous comment:

In StringBuffer b, final List<Action>
l, final String indent), oacs.model.Scripts are not taken into account even in J6 branch.

Am I misunderstanding something ?

What is more, states (sic) that to support the script
module, one must "Redefine the <scxml> element to allow <script> as a child."
This is not possible, as <onentry> is not possible child of <scxml> (which it
should even without the script module). Please, see no criticism here.

The following does not execute properly:
<?xml version="1.0"?>
<scxml xmlns=""
       <!-- Should work, but neither script not onentry is supported here. SCXMLReader
does not read them. -->
	function Hello(s) {
	    // Private variable
	     var what = String(s);
            // Public method
            this.say = function() {
                return "Hello " + what + "!\n";

        <data id="s" expr="'Bonjour tout le monde !\n'"/>

    <state id="script">
            	hello_world = new Hello("world");
		s = hello_world.say();
        <transition target="end" cond="s =='Hello world!\n'"/>

    <final id="end"/>


 The only workaround I've found is to add a state with onentry script that defines "script"
state as a sub state.

> Add <script> and EcmaScript + E4X support
> -----------------------------------------
>                 Key: SCXML-108
>                 URL:
>             Project: Commons SCXML
>          Issue Type: New Feature
>    Affects Versions: 0.9
>            Reporter: Ingmar Kliche
>             Fix For: 1.0
>         Attachments: 090501_oacs_script_and_rhino.patch.txt
> I propose to add <script> support and an EcmaScript evaluator which supports E4X.
I will provide a patch.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message