|
@@ -660,10 +660,9 @@ public class ProcessInstanceServiceImpl extends BaseServiceImpl implements Proce
|
|
|
for (TaskInstance taskInstance : taskInstanceList) {
|
|
|
TaskDefinitionLog taskDefinitionLog = taskDefinitionLogMapper.queryByDefinitionCodeAndVersion(
|
|
|
taskInstance.getTaskCode(), taskInstance.getTaskDefinitionVersion());
|
|
|
- String parameter = taskDefinitionLog.getTaskParams();
|
|
|
- Map<String, String> map = JSONUtils.toMap(parameter);
|
|
|
- String localParams = map.get(LOCAL_PARAMS);
|
|
|
- if (localParams != null && !localParams.isEmpty()) {
|
|
|
+
|
|
|
+ String localParams = JSONUtils.getNodeString(taskDefinitionLog.getTaskParams(), LOCAL_PARAMS);
|
|
|
+ if (StringUtils.isNotEmpty(localParams)) {
|
|
|
localParams = ParameterUtils.convertParameterPlaceholders(localParams, timeParams);
|
|
|
List<Property> localParamsList = JSONUtils.toList(localParams, Property.class);
|
|
|
|
|
@@ -674,7 +673,6 @@ public class ProcessInstanceServiceImpl extends BaseServiceImpl implements Proce
|
|
|
localUserDefParams.put(taskDefinitionLog.getName(), localParamsMap);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
return localUserDefParams;
|
|
|
}
|