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
Can you double check if your process model is published?
That's the first thing I did.
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
Could you please check for process parameters and their data types and also respective passed values and its data types?
Could you please check for process parameters and their datatypes also respective passed values and its datatypes?
I faced the similar but found the route cause that one of the process variables datatype does not match between parameterized process variable of sub process model and passed process variable of parent process model.
Check your security settings and if the loggedInUser() is part of the group that can at least View the process models.
process parameter passed in WEB API is wrong i.e code_Banque its nom_Banque its visible in the screenshot shared by you.