commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heiko.Eichber...@rsbick.rohde-schwarz.com
Subject [SCXML] Multiple definition of a state's source file
Date Tue, 06 Jun 2006 08:59:14 GMT




Hi,

in an SCXML file I've tried to define a source file for states multiple
times (for sub-states which use the same state machine). The execution of
it raises a model exception.

06.06.2006 10:47:06 org.apache.commons.scxml.env.SimpleErrorReporter
onError
WARNUNG: ILLEGAL_CONFIG (Not all AND states active for parallel 2):
/state2/2 : [/state2/2/state2_substate1]
06.06.2006 10:47:06 org.apache.commons.scxml.env.SimpleErrorReporter
onError
WARNUNG: ILLEGAL_CONFIG (Not all AND states active for parallel 1):
/state1/1 : [/state1/1/state1_substate2]
06.06.2006 10:47:06 org.apache.commons.scxml.env.SimpleErrorReporter
onError
WARNUNG: ILLEGAL_CONFIG (Multiple top-level OR states active!): <SCXML> :
[/state2, /state1]
org.apache.commons.scxml.model.ModelException: Illegal state machine
configuration!
      at
org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.followTransitions(
SCXMLSemanticsImpl.java:664)
      at org.apache.commons.scxml.SCXMLExecutor.triggerEvents(
SCXMLExecutor.java:113)

But when I copy the source file, rename it and define the copied file at
state's source definition there are no problems. Here's a sample (state
"state1" should be entered first):

...
<state id="state1">
      <parallel id="1">
            <state id="state1_substate1" src="substate.scxml"/>
            <state id="state1_substate2">
                  <transition event="event1" target="state2"/>
                  <transition event="event2" target="state3"/>
            </state>
      </parallel>
</state>
<state id="state2">
      <parallel id="2">
            <state id="state2_substate1" src="substate.scxml"/>
            <state id="state2_substate2">
                  <transition event="event3" target="state4"/>
            </state>
      </parallel>
</state>
...

Do you hav any hints?

Regards,

Heiko


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message