[
https://issues.apache.org/jira/browse/SCXML-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550164
]
Ingmar Kliche commented on SCXML-62:
------------------------------------
The proposed solution does not address the problem raised here. The templating
helps when importing states multiple times as it allows to change the
state-ID's.
But note that in this case we only import one transition! The content of the
state we are importing is only:
<transition event="foo" />
Templating would not help here.
> Error on sourcing in content of states multiple times
> -----------------------------------------------------
>
> Key: SCXML-62
> URL: https://issues.apache.org/jira/browse/SCXML-62
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.6
> Reporter: Ingmar Kliche
>
> It is not possible to source in the content of a state (from an external
> document) multiple times into a scxml state machine (even though there are
> only transitions in the sourced state, i.e. there are no conflicts on state
> id's).
> external-02-base.xml:
> ---------------------------------
> <scxml version="1.0"
> xmlns="http://www.w3.org/2005/07/scxml"
> id="base"
> initialstate="s1">
>
> <state id="s1">
> <initial>
> <transition target="s1.s11" />
> </initial>
> <state id="s1.s11" src="external-02-src.xml#sext" />
> <state id="s1.s12" src="external-02-src.xml#sext" />
> </state>
>
> </scxml>
> external-02-src.xml:
> ----------------------------
> <scxml version="1.0"
> xmlns="http://www.w3.org/2005/07/scxml"
> id="statesrc_ext"
> initialstate="sext">
>
> <state id="sext">
> <transition event="foo" />
> </state>
>
> </scxml>
> Testcase:
> ------------------
> public void testExternal02() {
> // (1) Get a SCXMLExecutor
> exec = SCXMLTestHelper.getExecutor(external02);
> }
> Error: Initial state null or not a descendant of state with ID "s1.s11"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.