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

流程中状态值

上级 38f046f6
......@@ -79,6 +79,9 @@ public class ProcessInstanceListener extends AbstractFlowableEventListener {
String wfstatefield="";
if(setting.containsKey("wfstatefield"+"_"+entity))
wfstatefield=setting.get("wfstatefield"+"_"+entity).toString();
String udstateingval="20";
if(setting.containsKey("udstateingval"+"_"+entity))
udstateingval=setting.get("udstateingval"+"_"+entity).toString();
String wfverfield="";
if(setting.containsKey("wfverfield"+"_"+entity))
wfverfield=setting.get("wfverfield"+"_"+entity).toString();
......@@ -93,6 +96,7 @@ public class ProcessInstanceListener extends AbstractFlowableEventListener {
executionEntity.setVariable("wfstepfield",wfstepfield);
executionEntity.setVariable("wfinstfield",wfinstfield);
executionEntity.setVariable("udstatefield",udstatefield);
executionEntity.setVariable("udstateingval",udstateingval);
executionEntity.setVariable("wfstatefield",wfstatefield);
executionEntity.setVariable("wfverfield",wfverfield);
executionEntity.setVariable("majortextfield",majortext_field);
......@@ -103,7 +107,7 @@ public class ProcessInstanceListener extends AbstractFlowableEventListener {
if(!StringUtils.isEmpty(wfstatefield))
callbackArg.put(wfstatefield,1);
if(!StringUtils.isEmpty(udstatefield))
callbackArg.put(udstatefield,"20");
callbackArg.put(udstatefield,udstateingval);
if((!StringUtils.isEmpty(wfverfield))&&(executionEntity.getVariable("wfversion")!=null))
callbackArg.put(wfverfield,Integer.parseInt(executionEntity.getVariable("wfversion").toString()));
......@@ -156,8 +160,8 @@ public class ProcessInstanceListener extends AbstractFlowableEventListener {
Map callbackArg=new LinkedHashMap();
if(!StringUtils.isEmpty(wfstate))
callbackArg.put(wfstate,2);
if(!StringUtils.isEmpty(udstatefield))
callbackArg.put(udstatefield,"30");
// if(!StringUtils.isEmpty(udstatefield))
// callbackArg.put(udstatefield,"30");
if(!StringUtils.isEmpty(wfstepfield))
callbackArg.put(wfstepfield,"");
if(callbackArg.size()>0) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册