POST /runtime/tasks/{taskId}
See original GitHub issueUsing Flowable’s REST API to complete a User task:
curl -H "Content-Type: application/json"
-X POST http://admin:test@localhost:8080/flowable-task/process-api/runtime/tasks/1fae489a-070f-11e9-a85e-0242ac110002
-d "@data-1.json"
data-1.json:
{
"action" : "complete",
"variables" : [
{
"id": "givenName",
"name": "Given Name",
"type": "string",
"value": "Rob"
},
{
"id": "familyName",
"name": "Family Name",
"type": "string",
"value": "Ferguson"
},
{
"id": "employeeNumber",
"name": "Employee Number",
"type": "integer",
"value": 123456
},
{
"id": "fromDate",
"name": "From Date",
"type": "date",
"value": "2018-12-21T00:00:00+00:00"
},
{
"id": "toDate",
"name": "To Date",
"type": "date",
"value": "2019-01-07T00:00:00+00:00"
}
]
}
Returns:
Status: 200 OK
Despite returning OK it doesn’t appear to save the User task’s form data:
See: https://robferguson.org/blog/2018/12/24/flowable-rest-api-part-1/
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (8 by maintainers)
Top Results From Across the Web
POST /runtime/tasks/{taskId} - Flowable Engine
I used Flowable Task to create a process instance. GET runtime/tasks curl -H "Content-Type: application/json" \ -X GET ...
Read more >Solved: Reassign a task - Alfresco Hub
we must call the two REST APIs in order. 1. unclaim. POST runtime/tasks/%taskId%. { "action": "claim",
Read more >POSTPROCESSOR BUILDING - "Get the code you want by ...
POSTPROCESSOR BUILDING - "Get the code you want by customizing your posts with Post Builder" Więcej o NX CAM: https://gmsystem.pl/nx-cam/
Read more >Modelos y algoritmos para minería de procesos y datos - Colibri
POST form/form-data: Completar datos de un formulario a partir de un ... un put del servicio “/activiti-rest/service/runtime/tasks/taskId” de Activiti Rest.
Read more >3. Configuring Post Functions - Innovalog
Jira workflow post functions carry out rules after a transition is executed. Post functions are the most common workflow extensions used for automating ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After a bit more trial and error I got it to work 😃
Sample payload:
formDefinitionId
is theid
attribute returned from GET runtime/tasks/{taskId}/formAlso:
GET runtime/tasks/{formId}/form returns “type”: “text” POST runtime/tasks/{taskId} accepts “type”: “string”
Output:
And:
GET runtime/tasks/{formId}/form returns:
POST runtime/tasks/{taskId} accepts:
Output:
@tijsrademakers I tested the latest source code,
GET /runtime/tasks/{taskId}/form
works fine for active tasks, but for completed tasks this api returnstask not found