I'm using flowable and try to pass a JSON as body, but it's seen as malformed when processing the request (or so I think since the error is Bad Request
). Basically I'm passing some parameters this way:
@PostMapping(path = PathConstants.START_ACTION)
public ResponseEntity<BaseResponse<ProcessInstance>> start(@PathVariable String processDefinitionId,
@RequestBody(required = false) Map<String, Object> params)
The params
are set using postman, this way:
{
"body": {
"email":"testmail@test",
"password":"password"
}
}
The process starts and the POST call is made, but Bad Request is given back. I've tried printing the variables of the process after this call and this is what I have:
body={email=testmail@test, password=password}
So I've tried passing this instead:
{
"body": "{ \"email\":\"testmail@test\", \"password\":\"password\"}"
}
And when printing the variables I have:
body={"email":"testmail@test", "password":"password"}
but still it's a bad request. What is wrong with this JSON?