[
https://issues.apache.org/jira/browse/SCXML-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554042
]
Ross Yakulis commented on SCXML-64:
-----------------------------------
I believe that the bug is allowing datamodel in the transition. And the
SCXML schema agrees. The problem is the way the digester is building
the rules it uses the same rules for transition and state.
Ross Yakulis
-------- FAILS
<scxml xmlns="http://www.w3.org/2005/07/scxml"
version="1.0"
initialstate="tranbug">
<state id="tranbug">
<onentry>
<log expr="'Begin transition bug test ...'" />
</onentry>
<transition event="show.bug" target="end">
<datamodel>
<data name="dummy" expr="'somedata'"/>
</datamodel>
<log expr="dummy" />
<log expr="'*****' + dummy" />
</transition>
</state>
</scxml>
----WORKS
<scxml xmlns="http://www.w3.org/2005/07/scxml"
version="1.0"
initialstate="tranbug">
<state id="tranbug">
<datamodel>
<data name="dummy" expr="'somedata'"/>
</datamodel>
<onentry>
<log expr="'Begin transition bug test ...'" />
</onentry>
<transition event="show.bug" target="end">
<log expr="dummy" />
<log expr="'*****' + dummy" />
</transition>
</state>
</scxml>
> datamodel should not be allowed in transition.
> ----------------------------------------------
>
> Key: SCXML-64
> URL: https://issues.apache.org/jira/browse/SCXML-64
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: win xp, java 1.5
> Reporter: Ross Yakulis
> Priority: Minor
>
> <transition event="my.event" target="somewhere">
> <datamodel>
> <data name="dummy" expr="somedata"/>
> </datamodel>
> <log expr="dummy" />
> <log expr="'*****' + dummy" />
> /transition>
> Given the above transition, the first log logs null, send log causes a
> nullpointerexception. Acording to the SCXML spec datamodel is not allowed in
> a transition only globally and at the state level.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.