commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berg, T.W. (Tom) van den" <>
Subject [SCXML] Reusing statediagrams through the src attribute in state
Date Mon, 21 Jul 2008 13:59:25 GMT
I would like to reuse a statediagram in an overall state diagram. The
src attribute in the state tag seems to suggest this is possible.
For example the main state.xml file would contain:
 <state id="Composite1" src="include.xml">
  <state id="finalState">
   <transition target="Composite2"/>

 <state id="Composite2" src="include.xml">
  <state id="finalState">
   <transition target="Composite3"/>

 <state id="Composite3" src="include.xml">
  <state id="finalState">
And the (simplified) include.xml looks like:
<scxml xmlns="
<> "
       xmlns:rti="http://rti.actions/CUSTOM <http://rti.actions/CUSTOM>
 <state id="sp">
  <transition target="finalState"/>

However, this example does not work.
I get the following error:
21-jul-2008 15:50:24
SEVERE: Initial state null or not a descendant of state with ID
Does nesting and state reuse work this way?
What are alternate ways to reuse state diagrams?
-- Tom

This e-mail and its contents are subject to the DISCLAIMER at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message