提交 163eabe3 编写于 作者: zhouweidong's avatar zhouweidong

将逻辑中的id调整为codename

上级 ca80edb4
...@@ -24,24 +24,24 @@ TARGET=PSDELOGIC ...@@ -24,24 +24,24 @@ TARGET=PSDELOGIC
<#if item.getPSDELogicNodes?? && item.getPSDELogicNodes()??> <#if item.getPSDELogicNodes?? && item.getPSDELogicNodes()??>
<#list item.getPSDELogicNodes() as logicNode> <#list item.getPSDELogicNodes() as logicNode>
<#if logicNode.getLogicNodeType()=='BEGIN'> <#if logicNode.getLogicNodeType()=='BEGIN'>
<startEvent id="${logicNode.getCodeName()}" isInterrupting="true"/> <startEvent id="${logicNode.getCodeName()?lower_case}" isInterrupting="true"/>
<#else> <#else>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="${logicName+logicNode.getCodeName()?lower_case}" id="${logicNode.getCodeName()}" implementation="http://www.jboss.org/drools/rule" name="${logicNode.getName()}"/> <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="${logicName+logicNode.getCodeName()?lower_case}" id="${logicNode.getCodeName()?lower_case}" implementation="http://www.jboss.org/drools/rule" name="${logicNode.getName()}"/>
</#if> </#if>
<#if !(logicNode.getPSDELogicLinks()??)><#comment>是否为流程最后一个处理节点,若为最后一个处理节点则生成End节点</#comment> <#if !(logicNode.getPSDELogicLinks()??)><#comment>是否为流程最后一个处理节点,若为最后一个处理节点则生成End节点</#comment>
<endEvent id="${logicNode.getCodeName()}_End" name="End"/> <endEvent id="${logicNode.getCodeName()?lower_case}_end" name="end"/>
<sequenceFlow id="${logicNode.getCodeName()}_End_Line" sourceRef="${logicNode.getCodeName()}" targetRef="${logicNode.getCodeName()}_End"/><#comment>生成流程最后一个处理节点与End节点之间的连线</#comment> <sequenceFlow id="${logicNode.getCodeName()?lower_case}_end_line" sourceRef="${logicNode.getCodeName()?lower_case}" targetRef="${logicNode.getCodeName()?lower_case}_end"/><#comment>生成流程最后一个处理节点与End节点之间的连线</#comment>
</#if> </#if>
</#list> </#list>
</#if> </#if>
<#comment>绘制节点连线</#comment> <#comment>绘制节点连线</#comment>
<#if item.getPSDELogicLinks?? && item.getPSDELogicLinks()??> <#if item.getPSDELogicLinks?? && item.getPSDELogicLinks()??>
<#list item.getPSDELogicLinks() as LogicLink> <#list item.getPSDELogicLinks() as LogicLink>
<#assign sourceNodeId=LogicLink.getSrcPSDELogicNode().getCodeName()> <#assign sourceNodeId=LogicLink.getSrcPSDELogicNode().getCodeName()?lower_case>
<#if LogicLink.getPSDELogicLinkGroupCond?? && LogicLink.getPSDELogicLinkGroupCond()??><#comment>判断连接线含有条件,若有条件,则将源节点指向网关</#comment> <#if LogicLink.getPSDELogicLinkGroupCond?? && LogicLink.getPSDELogicLinkGroupCond()??><#comment>判断连接线含有条件,若有条件,则将源节点指向网关</#comment>
<#assign sourceNodeId="gateway-"+LogicLink.getSrcPSDELogicNode().getCodeName()> <#assign sourceNodeId=("gateway-"+LogicLink.getSrcPSDELogicNode().getCodeName())?lower_case>
</#if> </#if>
<#assign targetNodeId=LogicLink.getDstPSDELogicNode().getCodeName()> <#assign targetNodeId=LogicLink.getDstPSDELogicNode().getCodeName()?lower_case>
<sequenceFlow id="${sourceNodeId}_${targetNodeId}" sourceRef="${sourceNodeId}" targetRef="${targetNodeId}"> <sequenceFlow id="${sourceNodeId}_${targetNodeId}" sourceRef="${sourceNodeId}" targetRef="${targetNodeId}">
<#if LogicLink.getPSDELogicLinkGroupCond?? && LogicLink.getPSDELogicLinkGroupCond()??><#comment>连接线含有条件</#comment> <#if LogicLink.getPSDELogicLinkGroupCond?? && LogicLink.getPSDELogicLinkGroupCond()??><#comment>连接线含有条件</#comment>
<conditionExpression language="http://www.jboss.org/drools/rule" ><![CDATA[ <conditionExpression language="http://www.jboss.org/drools/rule" ><![CDATA[
...@@ -71,18 +71,18 @@ TARGET=PSDELOGIC ...@@ -71,18 +71,18 @@ TARGET=PSDELOGIC
<#if item.getPSDELogicLinks?? && item.getPSDELogicLinks()??> <#if item.getPSDELogicLinks?? && item.getPSDELogicLinks()??>
<#list item.getPSDELogicLinks() as LogicLink> <#list item.getPSDELogicLinks() as LogicLink>
<#if LogicLink.getPSDELogicLinkGroupCond?? && LogicLink.getPSDELogicLinkGroupCond()??><#comment>连接线含有条件</#comment> <#if LogicLink.getPSDELogicLinkGroupCond?? && LogicLink.getPSDELogicLinkGroupCond()??><#comment>连接线含有条件</#comment>
<#assign gatewayId="gateway-"+LogicLink.getSrcPSDELogicNode().getCodeName()> <#assign gatewayId="gateway-"+LogicLink.getSrcPSDELogicNode().getCodeName()?lower_case>
<#if !P.exists("gateway",gatewayId)> <#if !P.exists("gateway",gatewayId)>
<#comment>绘制网关</#comment> <#comment>绘制网关</#comment>
<exclusiveGateway id="${gatewayId}" name="Gateway" gatewayDirection="Diverging" default="${gatewayId}_End_Line"></exclusiveGateway> <exclusiveGateway id="${gatewayId}" name="Gateway" gatewayDirection="Diverging" default="${gatewayId}_end_line"></exclusiveGateway>
<#comment>绘制网关与源节点的连线</#comment> <#comment>绘制网关与源节点的连线</#comment>
<#assign sourceNodeId=LogicLink.getSrcPSDELogicNode().getCodeName()> <#assign sourceNodeId=LogicLink.getSrcPSDELogicNode().getCodeName()?lower_case>
<sequenceFlow id="${sourceNodeId}_${gatewayId}_gatewayLine" sourceRef="${sourceNodeId}" targetRef="${gatewayId}"></sequenceFlow> <sequenceFlow id="${sourceNodeId}_${gatewayId}_gatewayline" sourceRef="${sourceNodeId}" targetRef="${gatewayId}"></sequenceFlow>
</#if> </#if>
<#comment>绘制网关默认结束节点</#comment> <#comment>绘制网关默认结束节点</#comment>
<#if !P.exists("gateway-end",gatewayId)> <#if !P.exists("gateway-end",gatewayId)>
<sequenceFlow id="${gatewayId}_End_Line" sourceRef="${gatewayId}" targetRef="${gatewayId}_End"/><#comment>生成流程最后一个处理节点与End节点之间的连线</#comment> <sequenceFlow id="${gatewayId}_end_line" sourceRef="${gatewayId}" targetRef="${gatewayId}_end"/><#comment>生成流程最后一个处理节点与End节点之间的连线</#comment>
<endEvent id="${gatewayId}_End" name="End"/> <endEvent id="${gatewayId}_end" name="end"/>
</#if> </#if>
</#if> </#if>
</#list> </#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册