On Fri, Jun 3, 2011 at 3:20 AM, Enrico Nardelli <narde...@mat.uniroma2.it> wrote: > I have the following SCXML > > <?xml version="1.0" encoding="UTF-8"?> > <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" exmode="lax" > initialstate="initialstate"> > <state id="initialstate"> > <transition event="start" target="onetwo" /> > </state> > <parallel id="onetwo"> > <transition event="onetwo_three" target="three" /> > <state id="one"> > </state> > <state id="two"> > <transition event="two_four" target="four" /> > </state> > </parallel> > <state id="three"> > <transition event="three_one" target="one" /> > <transition event="three_four" target="four" /> > </state> > <state id="four"> > <transition event="four_onetwo" target="onetwo" /> > <transition event="four_three" target="three" /> > </state> > </scxml> > > Issuing event "onetwo_three" while in the parallel correctly brings the > state machine in "three". > > Issuing event "two_four" while in the parallel raises an ILLEGAL_CONFIG > error. > <snip/>
I can't see why it should error out either. Please open a defect in JIRA [1] with above SCXML document and I'll take a look. If you're so inclined, a patch with a (failing) JUnit test -- see existing test suite [2] for inspiration -- would make it even easier. -Rahul [1] http://commons.apache.org/scxml/issue-tracking.html [2] http://svn.apache.org/repos/asf/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/ > Here is the detailed log transcription > > 3-giu-2011 3.30.35 org.apache.commons.scxml.model.Log execute > INFO: null: entering initialstate > > event: start > 3-giu-2011 3.30.46 org.apache.commons.scxml.model.Log execute > INFO: null: leaving initialstate > 3-giu-2011 3.30.46 org.apache.commons.scxml.model.Log execute > INFO: null: entering onetwo > 3-giu-2011 3.30.46 org.apache.commons.scxml.model.Log execute > INFO: null: entering one > 3-giu-2011 3.30.46 org.apache.commons.scxml.model.Log execute > INFO: null: entering two > > event: onetwo_three > 3-giu-2011 3.30.53 org.apache.commons.scxml.model.Log execute > INFO: null: leaving two > 3-giu-2011 3.30.53 org.apache.commons.scxml.model.Log execute > INFO: null: leaving one > 3-giu-2011 3.30.53 org.apache.commons.scxml.model.Log execute > INFO: null: leaving onetwo > 3-giu-2011 3.30.53 org.apache.commons.scxml.model.Log execute > INFO: null: entering three > > event: three_four > 3-giu-2011 3.31.04 org.apache.commons.scxml.model.Log execute > INFO: null: leaving three > 3-giu-2011 3.31.04 org.apache.commons.scxml.model.Log execute > INFO: null: entering four > > event: four_onetwo > 3-giu-2011 3.31.08 org.apache.commons.scxml.model.Log execute > INFO: null: leaving four > 3-giu-2011 3.31.08 org.apache.commons.scxml.model.Log execute > INFO: null: entering onetwo > 3-giu-2011 3.31.08 org.apache.commons.scxml.model.Log execute > INFO: null: entering one > 3-giu-2011 3.31.08 org.apache.commons.scxml.model.Log execute > INFO: null: entering two > > event: two_four > 3-giu-2011 3.31.15 org.apache.commons.scxml.env.SimpleErrorReporter onError > AVVERTENZA: ILLEGAL_CONFIG (Not all AND states active for parallel onetwo): > /onetwo : [/onetwo/one] > Illegal state machine configuration! > 3-giu-2011 3.31.15 org.apache.commons.scxml.env.SimpleErrorReporter onError > AVVERTENZA: ILLEGAL_CONFIG (Multiple top-level OR states active!): <SCXML> : > [/four, /onetwo] > > Any hints ? > > Best...Enrico > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org