niaoshuai commented on issue #13637:
URL:
https://github.com/apache/dolphinscheduler/issues/13637#issuecomment-1465447156
```java
private static void hanlerSerialGlobalPrams(ProcessInstance processInstance)
{
// 不知道串行等待的时候 global_params 对不对
// 判断下 command_params 是否为空
// get the startParams user specified at the first starting while
repeat running is needed
Map<String, Object> commandMap =
JSONUtils.parseObject(processInstance.getCommandParam(), new
TypeReference<Map<String, Object>>() {
});
Map<String, String> startParamMap = null;
if (MapUtils.isNotEmpty(commandMap)) {
Object startParamsJson = commandMap.get(CMD_PARAM_START_PARAMS);
if (startParamsJson != null) {
String startParams = startParamsJson.toString();
startParamMap = JSONUtils.toMap(startParams);
}
}
if (startParamMap != null && startParamMap.size() > 0) {
// commandParams
List<Map<String, String>> globalParamsList = new ArrayList<>();
startParamMap.forEach((key, value) -> {
Map<String, String> globalParamsMap = new HashMap<>();
globalParamsMap.put("prop", key);
globalParamsMap.put("direct", "IN");
globalParamsMap.put("type", "VARCHAR");
globalParamsMap.put("value", value);
globalParamsList.add(globalParamsMap);
});
processInstance.setGlobalParams(JSONUtils.toJsonString(globalParamsList));
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]