Reputation: 541
Here below is a definition of two Tasks, 1st one is HTTP and 2nd is HUMAN, in HTTP task need to pass workflowInstanceId and HUMAN taskId.
I am not able to find a way to get workflow contextual data. Help is appreciated.
{
"name": "fullfill_order_for_medicine",
"taskReferenceName": "fullfill_order_for_medicine",
"inputParameters": {
"http_request": {
"uri": "http://localhost:7777/orders",
"method": "PUT",
"body": {
"id": "${get_order_request.output.response.body.id}",
"name": "${get_order_request.output.response.body.name}",
"status": "complete",
"isComplete": true,
"WorkflowId":"${workflowInstanceId}",
"TaskId":"${dispatch_approval.taskId}"
}
}
},
"type": "HTTP"
},
{
"name" : "dispatch_approval",
"taskReferenceName": "dispatch_approval",
"type": "HUMAN"
}
Upvotes: 0
Views: 428