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

流程中状态值

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