07-14-2017 04:08 AM
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
07-17-2017 01:43 PM
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
07-17-2017 01:43 PM
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
07-19-2017 01:37 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.