diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java index e372c4ef1b..5e1a94f22b 100644 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java +++ b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java @@ -139,9 +139,9 @@ public Optional start(UserTaskInstance userTaskInstance public Optional claim(UserTaskInstance userTaskInstance, UserTaskTransitionToken token, IdentityProvider identityProvider) { if (userTaskInstance instanceof DefaultUserTaskInstance defaultUserTaskInstance) { if (token.data().containsKey(PARAMETER_USER)) { - defaultUserTaskInstance.setActuaOwner((String) token.data().get(PARAMETER_USER)); + defaultUserTaskInstance.setActualOwner((String) token.data().get(PARAMETER_USER)); } else { - defaultUserTaskInstance.setActuaOwner(identityProvider.getName()); + defaultUserTaskInstance.setActualOwner(identityProvider.getName()); } } return Optional.empty(); @@ -149,7 +149,7 @@ public Optional claim(UserTaskInstance userTaskInstance public Optional release(UserTaskInstance userTaskInstance, UserTaskTransitionToken token, IdentityProvider identityProvider) { if (userTaskInstance instanceof DefaultUserTaskInstance defaultUserTaskInstance) { - defaultUserTaskInstance.setActuaOwner(null); + defaultUserTaskInstance.setActualOwner(null); } return Optional.empty(); } @@ -164,7 +164,7 @@ public Optional skip(UserTaskInstance userTaskInstance, userTaskInstance.getMetadata().put(PARAMETER_NOTIFY, token.data().get(PARAMETER_NOTIFY)); } if (userTaskInstance instanceof DefaultUserTaskInstance defaultUserTaskInstance) { - defaultUserTaskInstance.setActuaOwner(identityProvider.getName()); + defaultUserTaskInstance.setActualOwner(identityProvider.getName()); } return Optional.empty(); } diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java index fe1c4b7365..581c7d6eec 100644 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java +++ b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/travels/usertasks/CustomUserTaskLifeCycle.java @@ -138,9 +138,9 @@ public Optional start(UserTaskInstance userTaskInstance public Optional claim(UserTaskInstance userTaskInstance, UserTaskTransitionToken token, IdentityProvider identityProvider) { if (userTaskInstance instanceof DefaultUserTaskInstance defaultUserTaskInstance) { if (token.data().containsKey(PARAMETER_USER)) { - defaultUserTaskInstance.setActuaOwner((String) token.data().get(PARAMETER_USER)); + defaultUserTaskInstance.setActualOwner((String) token.data().get(PARAMETER_USER)); } else { - defaultUserTaskInstance.setActuaOwner(identityProvider.getName()); + defaultUserTaskInstance.setActualOwner(identityProvider.getName()); } } return Optional.empty(); @@ -148,7 +148,7 @@ public Optional claim(UserTaskInstance userTaskInstance public Optional release(UserTaskInstance userTaskInstance, UserTaskTransitionToken token, IdentityProvider identityProvider) { if (userTaskInstance instanceof DefaultUserTaskInstance defaultUserTaskInstance) { - defaultUserTaskInstance.setActuaOwner(null); + defaultUserTaskInstance.setActualOwner(null); } return Optional.empty(); } @@ -163,7 +163,7 @@ public Optional skip(UserTaskInstance userTaskInstance, userTaskInstance.getMetadata().put(PARAMETER_NOTIFY, token.data().get(PARAMETER_NOTIFY)); } if (userTaskInstance instanceof DefaultUserTaskInstance defaultUserTaskInstance) { - defaultUserTaskInstance.setActuaOwner(identityProvider.getName()); + defaultUserTaskInstance.setActualOwner(identityProvider.getName()); } return Optional.empty(); }