I know how to complete a User task. I use the below REST end point on local system to complete a task instance
http://localhost:8080/engine-rest/task/<task_id>/complete
I send an empty payload. I want to send some payload; simple key-value pairs and then use it in XOR.
Actually, my plan is to use a User task for the Approval process and I will get a value for a boolean value suppose “approved” and then I will use it in the XOR gate to decide to which branch should be called.
I am trying to set this value in the payload when completing the User Task
{
“approved”: true
}
And then using #{approved} and #{not approved} Expressions for branching the decision.
I am not able to get the property set.
What is the correct way to set a boolean or any property for a User task while completing the task and only through REST API?