Skip to content

Instantly share code, notes, and snippets.

@mtaylor
Created December 11, 2012 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtaylor/4257951 to your computer and use it in GitHub Desktop.
Save mtaylor/4257951 to your computer and use it in GitHub Desktop.
<!--
GET http://localhost/conductor/state_machines/1
Describes a simple state machine with only 2 states RUNNING and STOPPED. The initial state of an instance using this machine is RUNNING. It can then only do one thing which is STOP.
-->
<state_machine id=1 href=http://localhost/conductor/state_machines/1>
<description>Instance State Machine</description>
<states>
<state id=1 href=http://localhost/conductor/state_machines/1/states/1>
<value>RUNNING</value>
<description>The state in which the server is running</description>
<transitions>
<state id=2 href://localhost/conductor/state_machines/1/states/2>
</transitions>
</state>
<state>
<value>STOPPED</value>
<description>The state in which the server is running</description>
<transitions></transitions>
</state>
</states>
</state_machine>
<!-- http://localhost/conductor/instances/1 -->
<instance id=1 href=http://localhost/conductor/instances/1>
<name>FooBar</name>
<state_machine id=1 href=http://localhost/conductor/state_machines/1>
<state id=1 href=http://localhost/conductor/state_machines/1/states/1>
</instance>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment