Hello, I have a problem with a webAPI I've just created.
I have this web API:
a!startProcess( processModel: cons!BPM_CONS_PROCESS_RIB, processParameters: { taskId: a!fromJson( http!request.body ).taskId, code_BIC: a!fromJson( http!request.body ).code_BIC, code_IBAN: a!fromJson( http!request.body ).code_IBAN, code_Banque: a!fromJson( http!request.body ).code_Banque }, onSuccess: a!httpResponse( statusCode: 200, headers: { a!httpHeader(name: "Content-Type", value: "application/json") }, body: a!toJson( fv!processInfo ) ), onError: a!httpResponse( statusCode: 500, headers: { a!httpHeader(name: "Content-Type", value: "application/json") }, body: a!toJson( { error: "There was an error starting the process", taskId: a!fromJson( http!request.body ).taskId, code_BIC: a!fromJson( http!request.body ).code_BIC, code_IBAN: a!fromJson( http!request.body ).code_IBAN, code_Banque: a!fromJson( http!request.body ).code_Banque } ) ) )
When I test it I have this error:
errorMessage: "The process model specified is invalid or does not exist. Process Model ID: 379."
Here are the variables:
I created a lot of web API that start process and I never had this problem.
Anyone have a clue?
Thanks
Discussion posts and replies are publicly visible
I create a new empty process and I still have the same issue ! I don't know why.
There is no sense.
check the Process Model security, the user who start the process must have Process Initiator or View rights.
I put my PM in a folder with security set.
When I check security in my other PM, this is what I find:
I have manually set the security inside the PM interface like this.
It's still doesn't work
Check your security settings and if the loggedInUser() is part of the group that can at least View the process models.