|
@@ -327,11 +327,13 @@ public class FlowTaskServiceImpl extends BaseServiceImpl<FlowTaskDao, FlowTask>
|
|
|
Map<String, Object> transientVariables = new HashMap<>();
|
|
|
Map<String, Object> variables = taskService.getVariables(task.getId());
|
|
|
Map<String, Object> values = taskForm.getValues();
|
|
|
- values.forEach((key, value) -> {
|
|
|
- if (variables.containsKey(key) && !variables.get(key).equals(value)) {
|
|
|
- transientVariables.put(key, value);
|
|
|
- }
|
|
|
- });
|
|
|
+ if(CollectionUtils.isNotEmpty(values)){
|
|
|
+ values.forEach((key, value) -> {
|
|
|
+ if (variables.containsKey(key) && !variables.get(key).equals(value)) {
|
|
|
+ transientVariables.put(key, value);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
if (Objects.nonNull(delegationState) && delegationState == DelegationState.PENDING) {
|
|
|
taskService.resolveTask(
|
|
|
taskForm.getTaskId(),
|