cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding the deployed process id

atul_sh
Champ in-the-making
Champ in-the-making
Greetings Everybody!

The deployed process id returned by API is different than the one that is stored in the database table ACT_RE_PROCDEF.
For example, if the deployed process id in DB table is "MyProcess:1:1112" and the id that is returned by the Deployment API is "MyProcess".

Because of this, the formService.submitStartFormData(…) is giving me error like, process definition not found.

Any take on this?

Thanks!


Regards,
Atul Shinkar
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
The ProcessDefinition java object's ID is not the ID that is in the process xml. The ID in xml corresponds to the KEY in the java-object.

Use startprocessInstanceByKey() or in your case, first find the latest process-definition for your key, and use that id in submitStartFormData():


repositoryService.createProcessDefinitionQuery().processDefinitionKey("MyProcess").lastest().singleResult();