Skip to content

Instantly share code, notes, and snippets.

@mtaylor mtaylor/gist:4257951
Created Dec 11, 2012

Embed
What would you like to do?
<!--
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
You can’t perform that action at this time.