Community

REST interface for JBPM

reply from Alexei none in jBPM - View the full discussion

GET http://hostname/jbpm-rest/task/{id}

So, currently supportet URLs

 

Repository service

 

GET http://hostname/jbpm-rest/repo/definitions - list of available process definitions

GET http://hostname/jbpm-rest/repo/definition/{id} - definition identified by id

GET http://hostname/jbpm-rest/repo/deployments - list of available deployments

GET http://hostname/jbpm-rest/repo/deployment/{id} - deployment identified by id

POST 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/{id}

GET http://hostname/jbpm-rest/exec/execution/{id}/variableNames

GET http://hostname/jbpm-rest/exec/execution/{id}/variable/{variableName}

POST 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/{id}

POST 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/{id}/variables

GET http://hostname/jbpm-rest/exec/process/{processDefinitionId}/start - starts process without any variables attached

POST 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

 

Managment service

 

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

GET http://hostname/jbpm-rest/mgmt/jobs

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

 

Task service

 

GET http://hostname/jbpm-rest/tasks/personal/{userId}

GET http://hostname/jbpm-rest/tasks/group/{groupId}

GET http://hostname/jbpm-rest/task/{id}

GET http://hostname/jbpm-rest/task/{id}/outcomes

GET http://hostname/jbpm-rest/task/{id}/variableNames

GET http://hostname/jbpm-rest/task/{id}/variable/{variableName}

POST http://hostname/jbpm-rest/task/{id}/variables

GET http://hostname/jbpm-rest/task/{id}/comments

POST 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

Start a new discussion in jBPM at Community