diff --git a/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTaskInstance.java b/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTaskInstance.java index 266e674887e..757bf30edec 100644 --- a/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTaskInstance.java +++ b/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTaskInstance.java @@ -210,7 +210,7 @@ public void setOutputs(Map outputs) { public void setInput(String key, Object newValue) { Object oldValue = this.inputs.put(key, newValue); if (this.userTaskEventSupport != null) { - this.userTaskEventSupport.fireOnUserTaskInputVariableChange(this, key, oldValue, newValue); + this.userTaskEventSupport.fireOnUserTaskInputVariableChange(this, key, newValue, oldValue); } updatePersistence(); } @@ -219,7 +219,7 @@ public void setInput(String key, Object newValue) { public void setOutput(String key, Object newValue) { Object oldValue = this.outputs.put(key, newValue); if (this.userTaskEventSupport != null) { - this.userTaskEventSupport.fireOnUserTaskOutputVariableChange(this, key, oldValue, newValue); + this.userTaskEventSupport.fireOnUserTaskOutputVariableChange(this, key, newValue, oldValue); } updatePersistence(); }