commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ate Douma (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SCXML-26) Add parameter to Evaluator.newContext
Date Fri, 02 Jan 2015 19:54:34 GMT

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

Ate Douma closed SCXML-26.
--------------------------
       Resolution: Not a Problem
    Fix Version/s:     (was: 2.0)

After reviewing this very old improvement request, I think this no longer is needed with the
new 2.0 implementation.

> Add parameter to Evaluator.newContext
> -------------------------------------
>
>                 Key: SCXML-26
>                 URL: https://issues.apache.org/jira/browse/SCXML-26
>             Project: Commons SCXML
>          Issue Type: Improvement
>    Affects Versions: 0.5
>            Reporter: Hallvard Trætteberg
>
> The Evaluator.newContext method currently takes one argument, the parent context. However,
to make it easier for the context to link to relevant application data, it would be nice if
it also took a TransitionTarget argument, i.e. have the signature     public Context newContext(TransitionTarget
target, Context parent); By including the target in the context, it becomes easier for expressions
to refer to contextual data. In my case, SCXML is used together with data bindings, and expressions
are used to refer to data in the context of states and transitions. I had to modify SCXML
as suggested above, to provide the link between state and data bindings.



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

Mime
View raw message