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. A portion of the XML (based off the existing scxml test
cases)
<scxml xmlns="http://www.w3.org/2005/07/scxml"
xmlns:my="http://my.custom-actions.domain/CUSTOM"
version="1.0" initialstate="init">
<datamodel>
<data name="helloName1" expr="undef" />
</datamodel>
<state id="init">
<onentry> <my:hello name="custom04" /> </onentry>
<transition event="helloevent" target="middle1">
<assign name="helloName1" expr="_eventdata" />
</transition>
</state>
Where the custom action does:
TriggerEvent event = new TriggerEvent("helloevent",
TriggerEvent.SIGNAL_EVENT, name);
derivedEvents.add(event);
Thanks in advance for any help.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]