public
Description: RESTful workflow / bpm engine based on Rack and OpenWFEru
Homepage: http://openwferu.rubyforge.org
Clone URL: git://github.com/jmettraux/ruote-rest.git
Search Repo:
jmettraux (author)
Wed Apr 30 18:12:23 -0700 2008
commit  a783518e4c3fc5c9937b74a4882ebc8496e6022a
tree    c2cb5baa2c98dc68549b00a1de491262e30e04d9
parent  41921c0de632bc5eec96f0bcdc5f4d3784002e26
name age message
folder CHANGELOG.txt Thu Apr 17 01:12:53 -0700 2008 switched to vanilla Sinatra (gem 0.2.2) [jmettraux]
folder LICENSE.txt Wed Apr 30 16:53:36 -0700 2008 aligned README and install scripts [jmettraux]
folder README.txt Wed Apr 30 16:53:36 -0700 2008 aligned README and install scripts [jmettraux]
folder Rakefile Wed Apr 30 16:53:36 -0700 2008 aligned README and install scripts [jmettraux]
folder bin/ Wed Apr 30 06:51:51 -0700 2008 preparing easy install/deploy [jmettraux]
folder conf/ Wed Apr 30 18:12:23 -0700 2008 unified HTML to use 'submit' for POST/PUT/DELETE [jmettraux]
folder lib/ Wed Apr 30 07:03:34 -0700 2008 creating logs/ automatically and updated README... [jmettraux]
folder public/ Wed Apr 30 05:36:42 -0700 2008 /workitems done in HTML [jmettraux]
folder test/ Wed Apr 30 07:03:34 -0700 2008 creating logs/ automatically and updated README... [jmettraux]
folder tools/ Thu Apr 24 18:02:27 -0700 2008 prepared launch tool [jmettraux]
folder views/ Wed Apr 30 18:12:23 -0700 2008 unified HTML to use 'submit' for POST/PUT/DELETE [jmettraux]
README.txt
= ruote-rest

A RESTful instance of OpenWFEru (ruote) powered by Sinatra (http://sinatrarb.com)


== getting it

To get Ruote and Ruote-Rest :

    git clone git://github.com/jmettraux/ruote-rest.git

Then

    cd ruote-rest 
    rake install_workflow_engine

To prepare the development database

    rake recreate_mysql_db

Expects a mysql db with a 'root' admin account with sufficient access rights. It will create a database named 
"ruoterest_development".

(
To prepare the test database

    rake recreate_mysql_db stage=test

To prepare the dev database with the admin 'toto'

    rake recreate_mysql_db dbadmin=toto
)


== starting it

    bin/start


Then head to

    http://localhost:4567/processes


== interface

By default, XML representations will be returned. The 'Accept' header is used to determine which representation the 
client expects. 

The 'format' query parameter can be used to override that, like in

     GET /processes?format=json

For debugging purposes, you can force to a text/plain content type with 'plain' :

    GET /workitems?format=json&plain=true


=== /processes

GET /processes

    lists all the [business] processes currently running in the engine


POST /processes

    launches a new process instance


GET /processes/{wfid}

    returns the detailed status of a given process instance


GET /processes/{wfid}/representation

    returns the JSON representation of the current process instance tree


DELETE /processes/{wfid}

    cancels a business process instance


=== /expressions

GET /expressions/{wfid}

    returns all the expressions of a business process instance


GET /expressions/{wfid}/{expid}

    returns one expression


GET /expressions/{wfid}/{expid}?format=yaml

    returns the YAML representation of an expression
    (note that using the Accept header is the best way to do that)


PUT /expressions/{wfid}/{expid}

    updates an expression, live. Expects a YAML version of the expression


DELETE /expressions/{wfid}/{expid}

    cancels one expression


=== /workitems

GET /workitems

    lists all the workitems 

GET /workitems/{wid}

    returns a workitem

GET /workitems?wfid=x

    returns all the workitems belonging to a [business] process instance

PUT /workitems/{wid}

    updates a workitem
    If the workitem field '_state' is set to 'proceeded' the workitem will resume its travel in its business process


== license

BSD


== feedback

http://groups.google.com/group/openwferu-users