diff --git a/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java b/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java index 06bfc65465cc82cc7e02e4e1f7b6575b97d1fa93..0a87cc8b11b602600094d4ff752957242c99872b 100644 --- a/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java +++ b/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java @@ -63,6 +63,26 @@ public class ProcessTaskConditionFactory extends ModuleInitializedListenerBase { return resultObj; } + public static JSONObject getConditionParamData(List options, ProcessTaskStepVo processTaskStepVo, String formTag) { + JSONObject resultObj = new JSONObject(); + for (String option : options) { + IProcessTaskCondition handler = conditionComponentMap.get(option); + if (handler != null) { + resultObj.put(option, handler.getConditionParamDataNew(processTaskStepVo, formTag)); + } + } + IProcessTaskCondition handler = conditionComponentMap.get(ProcessFieldType.FORM.getValue()); + if (handler != null) { + Object formObj = handler.getConditionParamDataNew(processTaskStepVo, formTag); + if (formObj != null) { + if (formObj instanceof JSONObject) { + resultObj.putAll((JSONObject) formObj); + } + } + } + return resultObj; + } + public static JSONObject getConditionParamData(ConditionProcessTaskOptions[] options, ProcessTaskStepVo processTaskStepVo) { JSONObject resultObj = new JSONObject(); for (ConditionProcessTaskOptions option : options) {