提交 211ee766 编写于 作者: ibizdev's avatar ibizdev

lengyuace 发布系统代码 [TrainSys,网页端]

上级 298a73a4
...@@ -2501,7 +2501,7 @@ ...@@ -2501,7 +2501,7 @@
"getPSDELogicLinks" : [ { "getPSDELogicLinks" : [ {
"getDstPSDELogicNode" : { "getDstPSDELogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "END1" "id" : "BINDPARAM1"
}, },
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDELogicNode" : { "getSrcPSDELogicNode" : {
...@@ -2519,28 +2519,34 @@ ...@@ -2519,28 +2519,34 @@
"paramAction" : "SETPARAMVALUE", "paramAction" : "SETPARAMVALUE",
"srcValue" : "1111", "srcValue" : "1111",
"srcValueType" : "SRCVALUE" "srcValueType" : "SRCVALUE"
} ],
"topPos" : 350
}, { }, {
"dstFieldName" : "aaa", "codeName" : "BINDPARAM1",
"getDstPSDELogicParam" : { "getDstPSDELogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "simpleVar" "id" : "simpleVar"
}, },
"name" : "直接值[bbbb] ==> simple[aaa]", "leftPos" : 420,
"paramAction" : "SETPARAMVALUE", "logicNodeType" : "BINDPARAM",
"srcValue" : "bbbb", "name" : "绑定参数",
"srcValueType" : "SRCVALUE" "getPSDELogicLinks" : [ {
}, { "getDstPSDELogicNode" : {
"dstFieldName" : "bbb",
"getDstPSDELogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "simplenum" "id" : "END1"
}, },
"name" : "直接值[[111,555,999]] ==> simplenum[bbb]", "name" : "连接名称",
"paramAction" : "SETPARAMVALUE", "getSrcPSDELogicNode" : {
"srcValue" : "[111,555,999]", "modelref" : true,
"srcValueType" : "SRCVALUE" "id" : "BINDPARAM1"
}
} ], } ],
"topPos" : 350 "srcFieldName" : "MONEY",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 469
}, { }, {
"codeName" : "END1", "codeName" : "END1",
"leftPos" : 440, "leftPos" : 440,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"getPSDELogicLinks" : [ { "getPSDELogicLinks" : [ {
"getDstPSDELogicNode" : { "getDstPSDELogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "END1" "id" : "BINDPARAM1"
}, },
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDELogicNode" : { "getSrcPSDELogicNode" : {
...@@ -48,28 +48,34 @@ ...@@ -48,28 +48,34 @@
"paramAction" : "SETPARAMVALUE", "paramAction" : "SETPARAMVALUE",
"srcValue" : "1111", "srcValue" : "1111",
"srcValueType" : "SRCVALUE" "srcValueType" : "SRCVALUE"
} ],
"topPos" : 350
}, { }, {
"dstFieldName" : "aaa", "codeName" : "BINDPARAM1",
"getDstPSDELogicParam" : { "getDstPSDELogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "simpleVar" "id" : "simpleVar"
}, },
"name" : "直接值[bbbb] ==> simple[aaa]", "leftPos" : 420,
"paramAction" : "SETPARAMVALUE", "logicNodeType" : "BINDPARAM",
"srcValue" : "bbbb", "name" : "绑定参数",
"srcValueType" : "SRCVALUE" "getPSDELogicLinks" : [ {
}, { "getDstPSDELogicNode" : {
"dstFieldName" : "bbb",
"getDstPSDELogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "simplenum" "id" : "END1"
}, },
"name" : "直接值[[111,555,999]] ==> simplenum[bbb]", "name" : "连接名称",
"paramAction" : "SETPARAMVALUE", "getSrcPSDELogicNode" : {
"srcValue" : "[111,555,999]", "modelref" : true,
"srcValueType" : "SRCVALUE" "id" : "BINDPARAM1"
}
} ], } ],
"topPos" : 350 "srcFieldName" : "MONEY",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 469
}, { }, {
"codeName" : "END1", "codeName" : "END1",
"leftPos" : 440, "leftPos" : 440,
......
...@@ -14,12 +14,15 @@ ...@@ -14,12 +14,15 @@
</extensionElements> </extensionElements>
<startEvent id="begin" isInterrupting="true"/> <startEvent id="begin" isInterrupting="true"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="phonexxxprepareparam1" id="prepareparam1" implementation="http://www.jboss.org/drools/rule" name="准备参数"/> <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="phonexxxprepareparam1" id="prepareparam1" implementation="http://www.jboss.org/drools/rule" name="准备参数"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="phonexxxbindparam1" id="bindparam1" implementation="http://www.jboss.org/drools/rule" name="绑定参数"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="phonexxxend1" id="end1" implementation="http://www.jboss.org/drools/rule" name="结束"/> <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="phonexxxend1" id="end1" implementation="http://www.jboss.org/drools/rule" name="结束"/>
<endEvent id="end1_end" name="end"/> <endEvent id="end1_end" name="end"/>
<sequenceFlow id="end1_end_line" sourceRef="end1" targetRef="end1_end"/> <sequenceFlow id="end1_end_line" sourceRef="end1" targetRef="end1_end"/>
<sequenceFlow id="begin_prepareparam1" sourceRef="begin" targetRef="prepareparam1"> <sequenceFlow id="begin_prepareparam1" sourceRef="begin" targetRef="prepareparam1">
</sequenceFlow> </sequenceFlow>
<sequenceFlow id="prepareparam1_end1" sourceRef="prepareparam1" targetRef="end1"> <sequenceFlow id="prepareparam1_bindparam1" sourceRef="prepareparam1" targetRef="bindparam1">
</sequenceFlow>
<sequenceFlow id="bindparam1_end1" sourceRef="bindparam1" targetRef="end1">
</sequenceFlow> </sequenceFlow>
</process> </process>
</definitions> </definitions>
\ No newline at end of file
...@@ -27,8 +27,16 @@ package cn.ibizlab.trainsys.common.logic.phonelogic.xxx; ...@@ -27,8 +27,16 @@ package cn.ibizlab.trainsys.common.logic.phonelogic.xxx;
when when
then then
phonexxxdefault.set("money","1111"); phonexxxdefault.set("money","1111");
phonexxxsimplevar.set("aaa","bbbb"); update(phonexxxdefault);//更新fact中变量值
phonexxxsimplenum.set("bbb","[111,555,999]"); update(phonexxxsimplevar);//更新fact中变量值
update(phonexxxsimplenum);//更新fact中变量值
end
//逻辑处理节点[绑定参数]
rule "bindparam1"
ruleflow-group "phonexxxbindparam1"
when
then
update(phonexxxdefault);//更新fact中变量值 update(phonexxxdefault);//更新fact中变量值
update(phonexxxsimplevar);//更新fact中变量值 update(phonexxxsimplevar);//更新fact中变量值
update(phonexxxsimplenum);//更新fact中变量值 update(phonexxxsimplenum);//更新fact中变量值
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册