Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6FC0104FB for ; Sun, 16 Feb 2014 01:01:33 +0000 (UTC) Received: (qmail 97730 invoked by uid 500); 16 Feb 2014 01:01:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 97615 invoked by uid 500); 16 Feb 2014 01:01:25 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 97605 invoked by uid 99); 16 Feb 2014 01:01:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 01:01:24 +0000 Date: Sun, 16 Feb 2014 01:01:24 +0000 (UTC) From: "Ate Douma (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SCXML-164) In Parallel, it is not work when State transitions to History. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCXML-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ate Douma updated SCXML-164: ---------------------------- Fix Version/s: 2.0 > In Parallel, it is not work when State transitions to History. > -------------------------------------------------------------- > > Key: SCXML-164 > URL: https://issues.apache.org/jira/browse/SCXML-164 > Project: Commons SCXML > Issue Type: Bug > Affects Versions: 0.9 > Environment: MAC OS X version 10.6.8 > Reporter: Arnon > Fix For: 2.0 > > > 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 > configuration! > at > org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.followTransitions(SCXMLSemanticsImpl.java:703) > at > org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:127) > at > org.apache.commons.scxml.env.AbstractStateMachine.fireEvent(AbstractStateMachine.java:201) > 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 correct. > The equivalent SCXML is following: > > initial="Main"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From the source, active states was not valid in Parallel > if (!SCXMLHelper.isLegalConfig(targetSet, errorReporter)) { > throw new ModelException("Illegal state machine > configuration!"); > } > in SCXMLHelper.isLegalConfig(targetSet, errorReporter): > if (tt instanceof Parallel) { > Parallel p = (Parallel) tt; > if (count.size() < p.getChildren().size()) { > errRep.onError(ErrorConstants.ILLEGAL_CONFIG, > "Not all AND states active for parallel " > + p.getId(), entry); > legalConfig = false; > } > } -- This message was sent by Atlassian JIRA (v6.1.5#6160)