Hi Camunda Team, I am currently studying Camunda and trying to adapting it.
- Here is the use case:
-
- Employee Requests Update Product Price.
-
- Manager get notified to Review Request.
-
- Manager Approve/Reject the request.
-
- Employee get notified the Approval/Rejection.
-
- Product Price being updated.
I would like to use REST api to do step 3 [Manager Approve/Reject the request] which should be apply to Complete Task API with request body:
{
"variables": [
{
"name": "decision",
"value": "approved"
}
]
}
since the Review Request Form was designed to have a radio group called “decision” with options “approved” and ''rejected".
but currently I will receive the error like:
{
"status": 500,
"message": "Unrecognized token 'approved': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 9]",
"instance": null
}
How can I use API with the request body to make the approval/ rejection? Thanks