commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SCXML-100) Support _event variable
Date Fri, 22 Nov 2013 17:20:35 GMT

    [ https://issues.apache.org/jira/browse/SCXML-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829478#comment-13829478
] 

Woonsan Ko edited comment on SCXML-100 at 11/22/13 5:18 PM:
------------------------------------------------------------

Just for the record, since 20080516 [1], _eventdata seems to have been replaced by _event
variable.
For scxml document compatibility, I think SCXMLExecutor set both _event (and _event.data)
and _eventdata, and possibly it can log warning on accesses to the deprecated _eventdata access.
(By the way, _eventdata is equivalent to _event.data, not to _event itself.)

And let's deal with the readonly system variable support separately in SCXML-99.

[1] http://www.w3.org/TR/2008/WD-scxml-20080516/#SystemVariables


was (Author: woon_san):
Just for the record, since 20080516 [1], _eventdata seems to have been replaced by _event
variable.
For scxml document compatibility, I think SCXMLExecutor set both _event and _eventdata, and
possibly it can log warning on accesses to the deprecated _eventdata access.

And let's deal with the readonly system variable support separately in SCXML-99.

[1] http://www.w3.org/TR/2008/WD-scxml-20080516/#SystemVariables

> Support _event variable
> -----------------------
>
>                 Key: SCXML-100
>                 URL: https://issues.apache.org/jira/browse/SCXML-100
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.9
>            Reporter: Ingmar Kliche
>             Fix For: 2.0
>
>
> The SCXML spec defines a variable "_event" which is is bound to a structure containing
the event name and payload:
> _event.name
> _event.data
> The "_event" variable has to be read-only (from application point of view).
> This change will break backward compatibility of existing SCXML documents. Would it be
useful to keep the current variable "_eventdata" while adding the "_event" structure? "_eventdata"
could be marked as depricated and removed later.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message