工作流代码提交
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());
|
||||
}
|
||||
|
||||
|
||||
@@ -145,7 +145,14 @@ public class ThsSuperviseServiceImpl extends ServiceImpl<ThsSuperviseMapper, Ths
|
||||
this.thsSuperviseMapper.insert(thsSupervise);
|
||||
//TODO 解决工作流写死问题
|
||||
Map<String, Object> mapParam = new HashMap<>();
|
||||
iFlowDefinitionService.startProcessInstanceById("flow_yzep99kb:1:a100b48b-da75-11ed-8335-b07b253cdad9",thsSupervise.getSupIndex(),mapParam);
|
||||
String proInId = "";
|
||||
if(thsSupervise.getType() == 0){
|
||||
proInId = "flow_yzep99kb:1:a100b48b-da75-11ed-8335-b07b253cdad9";
|
||||
}else {
|
||||
proInId = "flow_yzep99kb:2:6358e099-dcba-11ed-8026-b07b253cdad9";
|
||||
}
|
||||
iFlowDefinitionService.startProcessInstanceById(proInId,thsSupervise.getSupIndex(),mapParam);
|
||||
|
||||
|
||||
for (ThsOverRunLog thsOverRunLog : superviceRunLogVo.getOverRunLog()) {
|
||||
thsOverRunLog.setCreateTime(date);
|
||||
|
||||
Reference in New Issue
Block a user