Hi All,
I am using Enterprise Activiti 1.5.0. I want to start the workflow from other Application (Spring Boot Web App). I found the below REST call to perform the same.
POST api/enterprise/process-instances
param: processDefinitionId
https://docs.alfresco.com/activiti/docs/dev-guide/1.5.0/#_start_process_instance
I could not find where to get the 'processDefinitionId' for my workflow from Activiti App??
I tried to debug it after i start the workflow from inside App using browser's Inspect Element option. I see processDefinitionId:"myNewProcess:34:222717". I see every time some number getting attached. Where can I get unique processDefinitionId to start the workflow from outside Application??
Thanks in Advance.
Thanks,
Naveen
Solved! Go to Solution.
processDefinitionId is an ID generated upon each deployment. You can get the processDefinitionId using process definition query.
Another option is to use "processDefinitionKey" instead of processDefinitionId which will start a process instance on the latest deployed version. You can get the processDefinitionKey from your process model. However you will have to use version 1.5.3.2 or above as there was a bug fixed in this version to allow processDefinitionKey use. Hope this helps
processDefinitionId is an ID generated upon each deployment. You can get the processDefinitionId using process definition query.
Another option is to use "processDefinitionKey" instead of processDefinitionId which will start a process instance on the latest deployed version. You can get the processDefinitionKey from your process model. However you will have to use version 1.5.3.2 or above as there was a bug fixed in this version to allow processDefinitionKey use. Hope this helps
Thank you Ciju Joseph for the response, i will try to use processDefinitionId from the suggested API call for now. Once I upgrade to 1.5.3.2, I will use processDefinitionKey.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.