You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ate Douma (JIRA)" <ji...@apache.org> on 2016/01/02 15:47:39 UTC

[jira] [Resolved] (SCXML-246) Javascript engine requires global context execution

     [ https://issues.apache.org/jira/browse/SCXML-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma resolved SCXML-246.
-----------------------------
    Resolution: Fixed

> Javascript engine requires global context execution
> ---------------------------------------------------
>
>                 Key: SCXML-246
>                 URL: https://issues.apache.org/jira/browse/SCXML-246
>             Project: Commons SCXML
>          Issue Type: Improvement
>            Reporter: Ate Douma
>            Assignee: Ate Douma
>             Fix For: 2.0
>
>
> The javascript engine uses a global Javscript context (e.g. the "global" state) which retains its state across SCXML script evaluation execution.
> The (currently default) custom feature of Commons SCXML to nest SCXML state contexts therefore cannot reliably be used for the Javascript language.
> Note that the SCXML specification explicitely states that all datamodel state should be shared globally as well.
> To retain the custom Commons SCXML feature, a new Evaluator characteristic is introduced which will specify if a specific (language) Evaluator requires a global context or not, which for the Javascript Evaluator (JSEvaluator) will be set to true. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)