From user-return-20668-apmail-commons-user-archive=commons.apache.org@commons.apache.org Wed Feb 27 20:56:22 2008 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 43571 invoked from network); 27 Feb 2008 20:56:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2008 20:56:21 -0000 Received: (qmail 24128 invoked by uid 500); 27 Feb 2008 20:56:12 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 24053 invoked by uid 500); 27 Feb 2008 20:56:12 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 24044 invoked by uid 99); 27 Feb 2008 20:56:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 12:56:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rahul.akolkar@gmail.com designates 209.85.128.184 as permitted sender) Received: from [209.85.128.184] (HELO fk-out-0910.google.com) (209.85.128.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 20:55:38 +0000 Received: by fk-out-0910.google.com with SMTP id 26so3471637fkx.10 for ; Wed, 27 Feb 2008 12:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=5IIlSKvQublR74oQqPS1ocP/I2UBRXoRw/qpcaDNMFU=; b=rnNGLDGhn/KZj67k7hPxAg1VvaC+g4Uq9nS4IYYFJuyqZ9whHtwaM7GW8i+nyw2F5+4nvkQKuVg6VS7XJRYQ8zKndaW5r7GpiiuoL5/LllHzQopZmU7io9mBbxDf99qa28ncSTOm42lqzDle8dcvCpsgv1EL9EIxUXFdVDdI/TY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RNqm1eRtQg+u4XiQd7Qy/HmOJ7/QSR6EwjY0hEz0hwp6pp9qBTQZBMacfhNEjFmXpMTAK02Zgn150mtILZ11zaCdRwu3EqXIf5svBWzaBXBg20hkZtcaDfR4ixuvngyRH+s8fc8qmL1MdyYDeSDLV2rY7+FumoUzCrG1FyEsrDo= Received: by 10.82.112.3 with SMTP id k3mr13236062buc.33.1204145745930; Wed, 27 Feb 2008 12:55:45 -0800 (PST) Received: by 10.82.140.18 with HTTP; Wed, 27 Feb 2008 12:55:45 -0800 (PST) Message-ID: Date: Wed, 27 Feb 2008 15:55:45 -0500 From: "Rahul Akolkar" To: "Jakarta Commons Users List" Subject: Re: SCXML initial state for orthogonal state In-Reply-To: <539108471@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <539108471@web.de> X-Virus-Checked: Checked by ClamAV on apache.org On 2/26/08, Tobias Salzbrunn wrote: > Hello all, > I am new to SCXML and first tried to run a general example for a parallel state: > > > version="1.0" > initialstate="mainState"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > running the resp. java programm yields to following error-log: > > org.apache.commons.scxml.io.ModelUpdater logAndThrowModelError > SCHWERWIEGEND: No initial element available for state with ID "mainState" > > IMHO the "mainState" does not need to have an initial element, because the > substates have initial elements. > > Any comments? > Based on the question, I'm assuming use of the new parser (SCXMLParser class). An is needed (alternatively, there is no need for the "mainState" wrapper around the ). See, for example, these two tests that show both flavors (long, possibly fragmented URLs below): http://svn.apache.org/repos/asf/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/microwave-04.xml http://svn.apache.org/repos/asf/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/microwave-05.xml Also note that there is a bug in the SCXMLParser in v0.7 (fixed in trunk) that affects the processing of s. See: http://issues.apache.org/jira/browse/SCXML-67 -Rahul > Thanks in advance > > Tobias > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org