工作流代码提交

This commit is contained in:
2023-04-17 15:32:53 +08:00
parent 9f9cae889b
commit 004219d58e
5 changed files with 125 additions and 6 deletions

View File

@@ -59,12 +59,12 @@ public class FlowDefinitionController extends BaseController {
@ApiOperation(value = "工作流_部署流程")
public void createDeployment() {
Deployment deployment = repositoryService.createDeployment()
.addClasspathResource("aa.bpmn20.xml")
.name("技术监督警流程").category("testCategory")
.addClasspathResource("gaojing.bpmn20.xml")
.name("技术监督警流程").category("gaojing")
.deploy();
ProcessDefinition definition = repositoryService.createProcessDefinitionQuery().deploymentId(deployment.getId()).singleResult();
repositoryService.setProcessDefinitionCategory(definition.getId(), "testCategory");
repositoryService.setProcessDefinitionCategory(definition.getId(), "gaojing");
System.out.println(deployment.getId());
}