You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Apache Wiki <wi...@apache.org> on 2005/08/10 07:51:15 UTC

[Jakarta-commons Wiki] Update of "SCXML" by RahulAkolkar

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by RahulAkolkar:
http://wiki.apache.org/jakarta-commons/SCXML

The comment on the change is:
Home page for the SCXML component wiki

New page:
 * ''Couldn't you have created a conventional wiki page?'' - Oh, we have a [wiki:/HomePage HomePage] too, just for you. 

 * ''Will Commons SCXML engine be able to execute this state machine?'' - You'll have to try that, but as a project we sure hope to.

----

<?xml version="1.0"?>

<scxml xmlns="http: //www.w3.org/2005/07/SCXML" version="1.0"  initialstate="[wiki:/ProjectProposal ProjectProposal]"> 

  <state id="[wiki:/ProjectProposal ProjectProposal]">
    <transition event="''feedback.received''">
      <target next="Setup"/>
    </transition>

    <onexit>
      <log expr="''[http://jakarta.apache.org/commons Commons-SCXML] is born''"/>
    </onexit>
  </state>

  <state id="Setup">
    <initial>
      <transition>
        <target next="[wiki:/HomePage Wiki]" />
      </transition>
    </initial>

    <state id="[wiki:/HomePage Wiki]">
      <onentry>
        <log expr="''Add a [wiki:/FrequentlyAskedQuestions FrequentlyAskedQuestions] page''"/>
      </onentry>

      <transition event="''wiki.created''">
        <target next="[http://svn.apache.org/repos/asf/jakarta/commons/sandbox/ ProjectRepository]"/>
      </transition>
    </state>

    <state id="[http://svn.apache.org/repos/asf/jakarta/commons/sandbox/ ProjectRepository]">
      <transition event="''initial.checkin.done''">
        <target next="Work"/>
      </transition>
    </state>
  </state>

  <state id="Work">
    <parallel>
      <onentry>
        <log expr="''Post Release''''''Plan''"/>
      </onentry>

      <state id="code">
        <transition event="''code.written''" cond="''${code.features eq 'sufficient'}''">
          <target next="Vote" />
        </transition>
      </state>

      <state id="trackbugs">
        <transition event="''ticket.received''">
          <log expr="''Resolve bugzilla ticket number ${ticket.number}''"/>
        </transition>
      </state>

      <state id="attendemails">
        <transition event="''discussion.started''">
          <log expr="''Participate in ${discussion.title} discussion''"/>
        </transition>
      </state>

      <onexit>
        <if cond="''${bugzilla.opentickets gt 0}''">
          <log expr="''Fix bugzilla tickets''"/>
        </if>

        <log expr="''Post Release''''''Candidate''"/>
      </onexit>
    </parallel>
  </state>          

  <state id="Vote">
    <transition event="''vote.pass''">
      <var name="version" expr="''${previous.version + 0.1}''"/>

      <target next="Release"/> 
    </transition>

    <transition event="''vote.fail''">
      <log expr="''Try harder''"/>

      <target next="Work"/>
    </transition>
  </state>

  <state id="Release">
    <transition event="''release.cut''">
      <target next="Work"/>
    </transition>

    <onexit>
      <log expr="''Announce Release''"/>
    </onexit>
  </state>

</scxml>

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