diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java
index 15a69bc95b89667ba21c2f97ea3ee7852b5e7f62..bb394daf5eb143c4f76688797e0f10f7b2c74681 100644
--- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java
+++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java
@@ -15,6 +15,7 @@ along with this program. If not, see .*/
package neatlogic.framework.autoexec.script.paramtype;
+import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
/**
@@ -74,4 +75,11 @@ public interface IScriptParamType {
* @return param
*/
Object getExchangeParamByValue(Object value);
+
+ /**
+ * 流程自动化节点,把表单表格组件中某列数据集合转换成作业参数对应的数据
+ * @param jsonArray
+ * @return
+ */
+ Object convertDataForProcessComponent(JSONArray jsonArray);
}
diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java
index ebd9d2d58338b7e19621de995b769aca40b0941c..c8bf04d6d83a5c5e1eab8cfbceef8fb6b02e1c40 100755
--- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java
+++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java
@@ -15,7 +15,22 @@ along with this program. If not, see .*/
package neatlogic.framework.autoexec.script.paramtype;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
+import neatlogic.framework.autoexec.dto.node.AutoexecNodeVo;
+import neatlogic.framework.cmdb.crossover.IResourceAccountCrossoverMapper;
+import neatlogic.framework.cmdb.dto.resourcecenter.AccountVo;
+import neatlogic.framework.common.constvalue.GroupSearch;
+import neatlogic.framework.crossover.CrossoverServiceFactory;
+import neatlogic.framework.crossover.IFileCrossoverService;
+import neatlogic.framework.file.dto.FileVo;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
/**
* @author lvzk
@@ -72,4 +87,392 @@ public abstract class ScriptParamTypeBase implements IScriptParamType{
protected Object getMyExchangeParamByValue(Object value){
return value;
}
+
+ protected List getStringList(JSONArray jsonArray) {
+ List resultList = new ArrayList<>();
+ for (Object obj : jsonArray) {
+ if (obj == null) {
+ continue;
+ }
+ if (obj instanceof JSONArray) {
+ JSONArray array = (JSONArray) obj;
+ resultList.addAll(getStringList(array));
+ } else {
+ resultList.add(obj.toString());
+ }
+ }
+ return resultList;
+ }
+
+ protected List