提交 e58069a5 编写于 作者: sq3536's avatar sq3536

老实例里的参数不全判断

上级 5cfec09d
...@@ -21,6 +21,7 @@ import org.flowable.task.service.impl.persistence.entity.TaskEntity; ...@@ -21,6 +21,7 @@ import org.flowable.task.service.impl.persistence.entity.TaskEntity;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
...@@ -155,13 +156,15 @@ public class ProcessInstanceListener extends AbstractFlowableEventListener { ...@@ -155,13 +156,15 @@ public class ProcessInstanceListener extends AbstractFlowableEventListener {
String entity=executionEntity.getVariable("entitys").toString(); String entity=executionEntity.getVariable("entitys").toString();
String cloudServiceid=executionEntity.getVariable("cloud-serviceid").toString(); String cloudServiceid=executionEntity.getVariable("cloud-serviceid").toString();
String wfstepfield = executionEntity.getVariable("wfstepfield").toString(); String wfstepfield = executionEntity.getVariable("wfstepfield").toString();
String udstateingval = executionEntity.getVariable("udstateingval").toString(); Object udstateingval = executionEntity.getVariable("udstateingval");
if(ObjectUtils.isEmpty(udstateingval))
udstateingval = "20";
String udstatefield = executionEntity.getVariable("udstatefield").toString(); String udstatefield = executionEntity.getVariable("udstatefield").toString();
String wfstate = executionEntity.getVariable("wfstate").toString(); String wfstate = executionEntity.getVariable("wfstate").toString();
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) && "20".equals(udstateingval)) if(!StringUtils.isEmpty(udstatefield) && "20".equals(udstateingval.toString()))
callbackArg.put(udstatefield,"30"); callbackArg.put(udstatefield,"30");
if(!StringUtils.isEmpty(wfstepfield)) if(!StringUtils.isEmpty(wfstepfield))
callbackArg.put(wfstepfield,""); callbackArg.put(wfstepfield,"");
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册