Commit 666477ac by zhouhaibao

[+]sop策略执行

1 parent c30789de
...@@ -51,6 +51,12 @@ public class SopInstNodeExecuteJobHandler { ...@@ -51,6 +51,12 @@ public class SopInstNodeExecuteJobHandler {
// SopXxlJobUtil.initSopNodeJob(sop); // SopXxlJobUtil.initSopNodeJob(sop);
} }
/**
* 节点执行
*
* @param node 节点信息
* @param sop 执行器
*/
public void execute(SopInstNode node, SopStruct sop) { public void execute(SopInstNode node, SopStruct sop) {
String nodeType = node.getNodeType(); String nodeType = node.getNodeType();
String handerType = BussinessType.getHanderType(nodeType); String handerType = BussinessType.getHanderType(nodeType);
...@@ -64,6 +70,7 @@ public class SopInstNodeExecuteJobHandler { ...@@ -64,6 +70,7 @@ public class SopInstNodeExecuteJobHandler {
// 向上转型 // 向上转型
SopProduct sopProduct = (SopProduct) classByValue.newInstance(); SopProduct sopProduct = (SopProduct) classByValue.newInstance();
BeanUtilsEx.copyProperties(node, sopProduct); BeanUtilsEx.copyProperties(node, sopProduct);
sopProduct.build(sopProduct, sop, instance); sopProduct.build(sopProduct, sop, instance);
} catch (InstantiationException e) { } catch (InstantiationException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!