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

处理逻辑启动工作流

上级 086c6bab
......@@ -20,6 +20,7 @@ package ${pub.getPKGCodeName()}.${de.getPSSystemModule().codeName?lower_case}.lo
import java.util.Map;
import java.util.HashMap;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.StringUtils;
<#list delogic.getPSDELogicParams() as logicParam>
<#if logicParam.isDefault()==true>
<#assign defaultLogicParam=logicParam><#comment>获取处理逻辑中默认逻辑参数</#comment>
......@@ -181,7 +182,7 @@ ruleflow-group "${logicName+deLogicNode.getCodeName()?lower_case}"
<#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);
wfClient.wfstart("${sys.codeName}","","${wfDE.codeName}",StringUtils.isEmpty(${wfLogicParam}.get("${wfDEKeyField}"))?"":${wfLogicParam}.get("${wfDEKeyField}"),activeData);
</#if>
<#if delogic.getPSDELogicParams?? && delogic.getPSDELogicParams()??>
<#list delogic.getPSDELogicParams() as logicParam>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册