You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Amar (Jira)" <ji...@apache.org> on 2020/12/14 09:07:00 UTC
[jira] [Created] (SCXML-288) Not able to get the event data using
"_event"
Amar created SCXML-288:
--------------------------
Summary: Not able to get the event data using "_event"
Key: SCXML-288
URL: https://issues.apache.org/jira/browse/SCXML-288
Project: Commons SCXML
Issue Type: Bug
Affects Versions: 2.0
Environment: Java 1.11
commons-scxml-2.2.0-M-1
commons-jexl-2.2.1
commons-logging-1.1.1
Reporter: Amar
Hi need to raise an event and add some params in it. The event when triggered should execute transitions. The XML format is given below.
<scxml name="Scxml" version="1.0"<scxml name="Scxml" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" initialState="initial"> <state id="initial"> <onentry> <send type="'scxml'" event="'onentry'"> <param name="rc1" expr="'Hello'" /> </send> </onentry> <transition event="onentry" target="next"> <log label="Transitioning" expr="_event.rc1"/> </transition> </state>
<state id="next"> <onentry> <log label="In Next" expr="_event.rc1" /> </onentry> </state></scxml>
While runnig this the '_event.data.rc1' returns null, with the following error on console.
*PM org.apache.commons.jexl2.Interpreter unknownVariable*
*WARNING: org.apache.commons.scxml2.env.jexl.JexlEvaluator.eval@134![0,10]: '_event.rc1;' inaccessible or unknown property _event*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)