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] Commented: (SCXML-62) Error on sourcing in content of states multiple times
Date Mon, 10 Dec 2007 17:12:43 GMT

    [ https://issues.apache.org/jira/browse/SCXML-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550125
] 

Rahul Akolkar commented on SCXML-62:
------------------------------------

Couple of folks have posted this, as a current solution:

http://wiki.apache.org/jakarta-commons/SCXML/Tutorials/Templating


> 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.


Mime
View raw message