You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Zuo, Tao" <ta...@intel.com> on 2008/06/02 08:32:55 UTC
access some class outside from inside scxml file
Hi all,
I 'd like to access some class outside scxml .
But this piece of code below from the specification seems silent.
Did I miss anything or it is still not supported?
Any suggestion please?
Example: <script> in executable content to manipulate the data model
<state id="updateDM">
<onentry>
<script>
_data.myDate = new Date();
updateCounter();
</script>
</onentry>
</state>
Regards,
ZuoTao
Re: access some class outside from inside scxml file
Posted by Rahul Akolkar <ra...@gmail.com>.
Please ask usage questions on the Commons user list, and please prefix
email subjects with [SCXML].
On 6/2/08, Zuo, Tao <ta...@intel.com> wrote:
> Hi all,
> I 'd like to access some class outside scxml .
> But this piece of code below from the specification seems silent.
> Did I miss anything or it is still not supported?
> Any suggestion please?
>
> Example: <script> in executable content to manipulate the data model
> <state id="updateDM">
> <onentry>
> <script>
> _data.myDate = new Date();
> updateCounter();
> </script>
> </onentry>
> </state>
>
<snip/>
The script module is not implemented in Commons SCXML yet. However,
the module contains only one action ( <script> ) and Commons SCXML
provides the ability to implement custom actions [1], which may be
used to provide an interim solution.
-Rahul
[1] http://commons.apache.org/scxml/guide/custom-actions.html
> Regards,
> ZuoTao
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org