Process definition identifier list from model identifier in activiti

In Activiti we can edit the model and reinstall it, but every time she expects the identifier of the process definition in the activiti moderator.

Is it possible to get detailed process definitions from the model identifier through the RepositoryService.

Can anyone help me with this?

+5
source share
3 answers

Here is the answer to my question,

var processEngine: ProcessEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration.buildProcessEngine() val repositoryService: RepositoryService = processEngine.getRepositoryService /** This will delete the deployed process and its processDefinition and its cascade data from activiti database **/ repositoryService.deleteDeployment(deploymentId,true) 

This helps to have an identical identifier for the process definition whenever the model is updated.

+1
source

There is currently no such Rest API for this.

0
source

You need a new process definition identifier every time you perform a deployment, since you want to run process instances with the latest ones and keep the old ones working with older versions.

What use case are you trying to solve here?

0
source

All Articles