在Activiti中,我们可以编辑模型并重新部署它,但每次在activiti建模器中都需要不同的流程定义id。
是否可以通过RepositoryService从modeler id中获取部署的processDefinitions。
有人能帮我吗?
发布于 2016-07-26 18:53:29
目前还没有这样的Rest API来查询。
发布于 2016-07-27 12:13:59
这是我问题的答案,
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)这有助于在每次更新模型时具有相同的流程定义Id。
发布于 2016-07-27 17:32:33
每次进行部署时,您确实需要一个新的流程定义id,因为您希望使用最新的流程实例启动流程实例,并保持旧的流程实例相对于旧版本运行。
您在这里尝试处理的用例是什么?
https://stackoverflow.com/questions/38585896
复制相似问题