[jboss-user] [jBPM] - REST interface for JBPM

Alexei none do-not-reply at jboss.com
Fri Mar 26 07:05:38 EDT 2010


Alexei none [http://community.jboss.org/people/Jump] replied to the discussion

"REST interface for JBPM"

To view the discussion, visit: http://community.jboss.org/message/534145#534145

--------------------------------------------------------------
GET  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}
So, currently supportet URLs

Repository service

GET  http://hostname/jbpm-rest/repo/definitions http://hostname/jbpm-rest/repo/definitions - list of available process definitions
GET  http://hostname/jbpm-rest/repo/definition/ http://hostname/jbpm-rest/repo/definition/{id} - definition identified by id
GET  http://hostname/jbpm-rest/repo/deployments http://hostname/jbpm-rest/repo/deployments - list of available deployments
GET  http://hostname/jbpm-rest/repo/deployment/ http://hostname/jbpm-rest/repo/deployment/{id} - deployment identified by id
POST  http://hostname/jbpm-rest/repo/deploy http://hostname/jbpm-rest/repo/deploy - accepts multipart/form-data i.e. file from <input type="file" ... />

Execution service

GET  http://hostname/jbpm-rest/exec/execution/ http://hostname/jbpm-rest/exec/execution/{id}
GET  http://hostname/jbpm-rest/exec/execution/ http://hostname/jbpm-rest/exec/execution/{id}/variableNames
GET  http://hostname/jbpm-rest/exec/execution/ http://hostname/jbpm-rest/exec/execution/{id}/variable/{variableName}
POST  http://hostname/jbpm-rest/exec/execution/ http://hostname/jbpm-rest/exec/execution/{id}/variables - accepts application/x-www-form-urlencoded where variables represented as key-value pairs. You can modify or add variables to execution by means of this method
GET  http://hostname/jbpm-rest/exec/process/ http://hostname/jbpm-rest/exec/process/{id}
POST  http://hostname/jbpm-rest/exec/process/ http://hostname/jbpm-rest/exec/process/{processDefinitionId}/start - starts process with variables accepted by means of key-value pairs, just the same as POST  http://hostname/jbpm-rest/exec/execution/ http://hostname/jbpm-rest/exec/execution/{id}/variables
GET  http://hostname/jbpm-rest/exec/process/ http://hostname/jbpm-rest/exec/process/{processDefinitionId}/start - starts process without any variables attached
POST  http://hostname/jbpm-rest/exec/process/ http://hostname/jbpm-rest/exec/process/{processDefinitionId}/start - ends process with state passed by form param named state
GET  http://hostname/jbpm-rest/exec/processes http://hostname/jbpm-rest/exec/processes

Managment service

GET  http://hostname/jbpm-rest/mgmt/job/ http://hostname/jbpm-rest/mgmt/job/{jobId}/execute
GET  http://hostname/jbpm-rest/mgmt/jobs http://hostname/jbpm-rest/mgmt/jobs
GET  http://hostname/jbpm-rest/mgmt/job/forProcessInstance/ http://hostname/jbpm-rest/mgmt/job/forProcessInstance/{processInstanceId}

Task service

GET  http://hostname/jbpm-rest/tasks/personal/ http://hostname/jbpm-rest/tasks/personal/{userId}
GET  http://hostname/jbpm-rest/tasks/group/ http://hostname/jbpm-rest/tasks/group/{groupId}
GET  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}
GET  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}/outcomes
GET  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}/variableNames
GET  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}/variable/{variableName}
POST  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}/variables
GET  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}/comments
POST  http://hostname/jbpm-rest/task/ http://hostname/jbpm-rest/task/{id}/end/{outcome} - ends task with given outcome and parameters passed by key-value pairs

History service

not implemented yet  :) 

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/534145#534145]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100326/cd67ed02/attachment.html 


More information about the jboss-user mailing list