commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnon (Created) (JIRA)" <>
Subject [jira] [Created] (SCXML-164) In Parallel, it is not work when State transitions to History.
Date Wed, 18 Jan 2012 03:39:40 GMT
In Parallel, it is not work when State transitions to History.

                 Key: SCXML-164
             Project: Commons SCXML
          Issue Type: Bug
    Affects Versions: 0.9
         Environment: MAC OS X version 10.6.8
            Reporter: Arnon

The problem was occurred when using Parallel and History together.

2011-12-28 15:08:03,775 INFO : Illegal state machine configuration!
org.apache.commons.scxml.model.ModelException: Illegal state machine

This exception was fired when transition from "S1" to "History" by
triggering "Sig1" event (History was already memorized). After the investigation, if we want
to transition to History in any States in Parallel, it seems that SCXML requires triggering
the same event(that is "Sig1" in this case) for all States in Parallel node(It works fine
if we create Transition to self with event "Sig1" on State "S10"), which I think it is not

The equivalent SCXML is following:

<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="" version="null"
 <!-- -->
 <parallel id="Main">
  <state id="region_Region1">
    <transition target="S1">
   <state id="S7">
     <transition target="s4">
    <history id="History" type="shallow">
      <target>       <state id="s4">
        <transition event="Sig3" target="S3">
      </target>     </transition>
    <transition event="Sig2" target="S1">
    <state id="S3">
    <state id="s4">
     <transition event="Sig3" target="S3">
   <state id="S1">
    <transition event="Sig1" target="History">
    <transition event="Sig0" target="S7">
  <state id="region_Region2">
    <transition target="S10">
   <state id="S10">

>From the source, active states was not valid in Parallel

        if (!SCXMLHelper.isLegalConfig(targetSet, errorReporter)) {
            throw new ModelException("Illegal state machine

in SCXMLHelper.isLegalConfig(targetSet, errorReporter):
        if (tt instanceof Parallel) {
            Parallel p = (Parallel) tt;
            if (count.size() < p.getChildren().size()) {
                    "Not all AND states active for parallel "
                    + p.getId(), entry);
                legalConfig = false;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message