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

处理逻辑启动工作流

上级 67ef31bf
......@@ -51,7 +51,6 @@ public class ${de.codeName}${item.codeName}LogicImpl implements I${de.codeName}$
<#if !P.exists("delogic","wfclient")>
@Autowired
${pub.getPKGCodeName()}.util.client.IBZWFFeignClient wfClient;
</#if>
</#if>
</#list>
......
......@@ -2,7 +2,16 @@
TARGET=PSDELOGIC
</#ibiztemplate>
package ${pub.getPKGCodeName()}.${de.getPSSystemModule().codeName?lower_case}.logic.${de.codeName?lower_case}logic.${item.getCodeName()?lower_case};
<#comment>是否包含启动工作流节点</#comment>
<#assign startWF=false>
<#if item.getPSDELogicNodes?? && item.getPSDELogicNodes()??>
<#list item.getPSDELogicNodes() as deLogicNode>
<#if deLogicNode.getLogicNodeType()=='STARTWF'>
<#assign startWF=true>
</#if>
<#break>
</#list>
</#if>
<#assign logicName=(de.codeName+item.codeName)?lower_case>
<#assign delogic=item>
<#assign defaultLogicParam="">
......@@ -36,6 +45,9 @@ global ${pub.getPKGCodeName()}.core.${DstPSDataEntity.getPSSystemModule().codeNa
<#comment>插入当前实体的defaultService对象,供自定义查询使用</#comment>
global ${pub.getPKGCodeName()}.core.${de.getPSSystemModule().codeName?lower_case}.service.I${de.codeName}Service iBzSys${de.codeName?lower_case?cap_first}DefaultService;
global ${pub.getPKGCodeName()}.util.security.AuthenticationUser curuser;
<#if startWF>
global ${pub.getPKGCodeName()}.util.client.IBZWFFeignClient wfClient;
</#if>
</#if>
no-loop
......@@ -164,7 +176,7 @@ ruleflow-group "${logicName+deLogicNode.getCodeName()?lower_case}"
<#elseif deLogicNode.getLogicNodeType()=='STARTWF'><#comment>启动工作流</#comment>
<#assign wfDE=deLogicNode.getPSDEWF().getPSDataEntity()>
<#assign wfDEKeyField=srfcaseformat(wfDE.getKeyPSDEField().codeName,'l_u2lC')>
<#assign wfParam=deLogicNode.getDstPSDELogicParam>
<#assign wfParam=deLogicNode.getDstPSDELogicParam()>
<#assign wfLogicParam=(logicName+wfParam.codeName)?lower_case>
JSONObject activeData=(JSONObject) JSONObject.toJSON(${wfLogicParam});
wfClient.wfstart("${sys.codeName}","","${wfDE.codeName}",${wfLogicParam}.get("${wfDEKeyField}"),activeData);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册