commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SCXML-54) Events from custom actions missing payload
Date Tue, 04 Dec 2007 03:36:43 GMT

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

Rahul Akolkar resolved SCXML-54.
--------------------------------

    Resolution: Fixed

Fixed in SVN, thanks for the test cases. I've added your name to the project contributors
section.

One caveat -- for derived events, Commons SCXML introduces _eventdatamap (since there are
usually more than one derived events). Therefore, _eventdata in the test cases attached here
needs to change to _eventdatamap.helloevent or _eventdatamap['helloevent'] (alternative syntax
for event names that have the dot character in them).

See this modified test case as an example (long, possibly fragmented URL below):

http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/custom-hello-world-04-jexl.xml?view=markup


> Events from custom actions missing payload
> ------------------------------------------
>
>                 Key: SCXML-54
>                 URL: https://issues.apache.org/jira/browse/SCXML-54
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.6
>         Environment: 20070730 nightly build
>            Reporter: Mike Tillberg
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: custom-hello-world-04-el.xml, custom-hello-world-04-jexl.xml, CustomActionTest.java,
HelloEvent.java, SCXMLTestHelper.patch
>
>
>    I'm trying to generate events from custom events by adding 
> TriggerEvent objects into the derivedEvents argument.  This is working 
> in terms of triggering transitions, however I'm unable to properly 
> access the payload from these generated events, depending on the 
> evaluator being used.  With the EL evaluator, _eventdata and 
> _eventdatamap seem to be empty when the transition fires.  With JEXL, 
> the payload is available, however the assignments seem to be in a local 
> context, even though the variable I'm assigning should only exist in the 
> root context.

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


Mime
View raw message