工作流代码提交
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user