commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Salzbrunn <tobias.salzbr...@web.de>
Subject SCXML initial state for orthogonal state
Date Tue, 26 Feb 2008 10:55:08 GMT
Hello all,
I am new to SCXML and first tried to run a general  example for a parallel state:

<?xml version="1.0" encoding="windows-1250"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml"
       version="1.0"
       initialstate="mainState">
       
    <state id="mainState"> 
        <parallel id="parts">
            <state id="region1">
                <initial>
                    <transition target="state1"/>
                </initial>
                <state id="state1">
                    <transition event="t1" target="state2"/>
                </state>
                <state id="state2">
                    <transition event="t2" target="state1"/>
                </state>            
            </state>
            <state id="region2">
                 <initial>
                    <transition target="state3"/>
                </initial>
                <state id="state3">
                    <transition event="t1" target="state4"/>
                </state>
                <state id="state4">
                    <transition event="t3" target="state3"/>
                </state>            
            </state>
        </parallel>
    </state>
</scxml>


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?

Thanks in advance

Tobias
_______________________________________________________________________
Jetzt neu! Sch├╝tzen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220


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


Mime
View raw message