提交 22a0e19a 编写于 作者: zhouweidong's avatar zhouweidong

动态工作流

上级 a69670cc
......@@ -135,7 +135,7 @@ public class MetaDynamicModelExService extends MetaDynamicModelServiceImpl {
List<Map<String, Object>> workflow = searchWorkFlow(publishFile.getPath());
//部署流程
if (workflow.size() > 0) {
wfClient.deployBpmnFile(workflow);
wfClient.deployDynaWF(workflow,et.getDynainstid());
}
//发送redis广播
Map<String, Object> message = new HashMap<>();
......
......@@ -26,4 +26,10 @@ public class IBZWFFallback implements IBZWFFeignClient {
public JSONObject wfstart(String system, String appname, String entity, String businessKey, JSONObject instance) {
return null;
}
@Override
public Boolean deployDynaWF(List<Map<String, Object>> bpmnfiles, String dynainstid) {
return null;
}
}
......@@ -24,4 +24,8 @@ public interface IBZWFFeignClient
JSONObject wfstart(@PathVariable("system") String system, @PathVariable("appname") String appname,
@PathVariable("entity") String entity,
@PathVariable("businessKey") String businessKey, @RequestBody JSONObject instance);
@RequestMapping(method = RequestMethod.POST, value = "/deploybpmn")
Boolean deployDynaWF(@RequestBody List<Map<String,Object>> bpmnfiles , @RequestHeader("dynainstid") String dynainstid);
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册