Created
May 10, 2018 06:43
-
-
Save vermauv/01adba11b79bcfa0a80784b35c90cf30 to your computer and use it in GitHub Desktop.
Camunda Postman Examples (create w/wo embedded forms, deploy, complete/assign/approve tasks)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "767f8402-3259-1c5a-5597-fb9a62a77193", | |
"name": "Camunda OC Demo", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Task List", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": {}, | |
"url": { | |
"raw": "localhost:8080/engine-rest/task?processDefinitionKey=invoice", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"task" | |
], | |
"query": [ | |
{ | |
"key": "processDefinitionKey", | |
"value": "invoice" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Deploy Process", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"variables\":\n {\n \t\"creditor\" : {\"value\" : \"Invoice Request from udit\", \"type\": \"String\"},\n \t\"amount\" : {\"value\" : \"Rs1699\", \"type\": \"String\"},\n\t\t\"invoiceNumber\" : {\"value\" : \"18762\", \"type\": \"String\"}\n\t}\n}" | |
}, | |
"url": { | |
"raw": "http://localhost:8080/engine-rest/process-definition/key/invoice/start", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"process-definition", | |
"key", | |
"invoice", | |
"start" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create Process", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "multipart/form-data" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [ | |
{ | |
"key": "upload", | |
"description": "", | |
"type": "file" | |
} | |
] | |
}, | |
"url": { | |
"raw": "localhost:8080/engine-rest/deployment/create", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"deployment", | |
"create" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Assign Approver", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": " {\"variables\":\n {\n \t\"approver\": {\"value\" : \"john\", \"type\": \"String\"}\n }\n }" | |
}, | |
"url": { | |
"raw": "localhost:8080/engine-rest/task/09238e62-37ea-11e8-8c78-0242ac120002/complete", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"task", | |
"09238e62-37ea-11e8-8c78-0242ac120002", | |
"complete" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Approve Request", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": " {\"variables\":\n {\n \t\"approved\": {\"value\": \"true\", \"type\":\"boolean\"}\n }\n}" | |
}, | |
"url": { | |
"raw": "localhost:8080/engine-rest/task/5dfedafe-37ed-11e8-8c78-0242ac120002/complete", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"task", | |
"5dfedafe-37ed-11e8-8c78-0242ac120002", | |
"complete" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Assign Financial Task", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"userId\": \"mary\"}" | |
}, | |
"url": { | |
"raw": "localhost:8080/engine-rest/task/d2de3d53-3896-11e8-8c78-0242ac120002/assignee", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"task", | |
"d2de3d53-3896-11e8-8c78-0242ac120002", | |
"assignee" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Complete Task", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{}" | |
}, | |
"url": { | |
"raw": "localhost:8080/engine-rest/task/0586d64a-3897-11e8-8c78-0242ac120002/complete", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"task", | |
"0586d64a-3897-11e8-8c78-0242ac120002", | |
"complete" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create a Process with embedded form", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [ | |
{ | |
"key": "deployment-name", | |
"value": "rest-test", | |
"type": "text" | |
}, | |
{ | |
"key": "enable-duplicate-filtering", | |
"value": "false", | |
"type": "text" | |
}, | |
{ | |
"key": "deploy-changed-only", | |
"value": "false", | |
"type": "text" | |
}, | |
{ | |
"key": "example.bpmn", | |
"value": "@source/example.bpmn", | |
"type": "file" | |
}, | |
{ | |
"key": "poll.html", | |
"value": "@source/poll.html", | |
"type": "file" | |
} | |
] | |
}, | |
"url": { | |
"raw": "http://localhost:8080/engine-rest/deployment/create", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8080", | |
"path": [ | |
"engine-rest", | |
"deployment", | |
"create" | |
] | |
}, | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment