Hi Christian,
sure thank you again.
I’m testing basically the entire mechanics via REST API. Currently running Camunda 7.3.
- Deploying the process definition via rest end point:
/camunda-rest/deployment/create
this replies back with a confirmation of the deployed process. Response:
{ "links": [ { "method": "GET", "href": "http://diaku.local:8081/camunda-rest/deployment/0953ed23-27f3-11e6-a642-001c4237d912", "rel": "self" } ], "id": "0953ed23-27f3-11e6-a642-001c4237d912", "name": "test-auto-deployment", "deploymentTime": "2016-06-01T12:19:06" }
- I get the process definition id via the rest end point:
/camunda-rest/process-definition?deploymentId=0953ed23-27f3-11e6-a642-001c4237d912
This gives me back the process definition details as per response below:
[ { "id": "09561005-27f3-11e6-a642-001c4237d912", "key": "changerequest-CatalogueItem-1-pool", "category": "http://camunda.org/examples", "description": null, "name": "Test Process Due Date 2", "version": 19, "resource": "test-bpmn.bpmn", "deploymentId": "0953ed23-27f3-11e6-a642-001c4237d912", "diagram": null, "suspended": false } ]
- Then start the process Instance for the above process definition via rest end point:
/camunda-rest/process-definition/09561005-27f3-11e6-a642-001c4237d912/start
which replies with:
{ "links": [ { "method": "GET", "href": "http://diaku.local:8081/camunda-rest/process-instance/6d8927b6-27f3-11e6-a642-001c4237d912", "rel": "self" } ], "id": "6d8927b6-27f3-11e6-a642-001c4237d912", "definitionId": "09561005-27f3-11e6-a642-001c4237d912", "businessKey": null, "caseInstanceId": null, "ended": false, "suspended": false }
- Then i get the tasks generated by starting the process via the end point:
/camunda-rest/task?processInstanceId=6d8927b6-27f3-11e6-a642-001c4237d912
which replies with tasks:
{ "id": "6d8927bb-27f3-11e6-a642-001c4237d912", "name": "Test Task With Documentation", "assignee": null, "created": "2016-06-01T12:21:54", "due": null, "followUp": null, "delegationState": null, "description": "Test Documentation", "executionId": "6d8927b8-27f3-11e6-a642-001c4237d912", "owner": null, "parentTaskId": null, "priority": 50, "processDefinitionId": "09561005-27f3-11e6-a642-001c4237d912", "processInstanceId": "6d8927b6-27f3-11e6-a642-001c4237d912", "taskDefinitionKey": "UserTask_0lyezex", "caseExecutionId": null, "caseInstanceId": null, "caseDefinitionId": null, "suspended": false, "formKey": null }, { "id": "6d8927bd-27f3-11e6-a642-001c4237d912", "name": "Test Task With Options", "assignee": null, "created": "2016-06-01T12:21:54", "due": null, "followUp": null, "delegationState": null, "description": null, "executionId": "6d8927b9-27f3-11e6-a642-001c4237d912", "owner": null, "parentTaskId": null, "priority": 50, "processDefinitionId": "09561005-27f3-11e6-a642-001c4237d912", "processInstanceId": "6d8927b6-27f3-11e6-a642-001c4237d912", "taskDefinitionKey": "UserTask_0lkngpm", "caseExecutionId": null, "caseInstanceId": null, "caseDefinitionId": null, "suspended": false, "formKey": null }
By the way thanks for you last reply.
Just posted my reply in case might help others on process deployment and starting etc.
Kind Regards and thank you again