This is an automated email from the ASF dual-hosted git repository.

martinweiler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie.git


The following commit(s) were added to refs/heads/main by this push:
     new fc8c29e9949 [kie-7138] Allow WS-Human Task lifecycle transition 
parameters to be … (#7139)
fc8c29e9949 is described below

commit fc8c29e9949f8f1519d7b47921a4765298b9d5f9
Author: abhijithumbe <[email protected]>
AuthorDate: Wed Oct 14 22:10:28 2026 +0530

    [kie-7138] Allow WS-Human Task lifecycle transition parameters to be … 
(#7139)
    
    * [kie-7138] Allow WS-Human Task lifecycle transition parameters to be 
case-insensitive
    
    * LinkedHashMap to Hashmap
    
    ---------
    
    Co-authored-by: abhijithumbe <[email protected]>
---
 .../impl/lifecycle/WsHumanTaskLifeCycle.java        | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git 
a/kogito-jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/lifecycle/WsHumanTaskLifeCycle.java
 
b/kogito-jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/lifecycle/WsHumanTaskLifeCycle.java
index 0a19d611b47..68e8ec9a318 100644
--- 
a/kogito-jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/lifecycle/WsHumanTaskLifeCycle.java
+++ 
b/kogito-jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/lifecycle/WsHumanTaskLifeCycle.java
@@ -23,6 +23,7 @@ import java.time.ZonedDateTime;
 import java.time.format.DateTimeParseException;
 import java.util.Collection;
 import java.util.Collections;
+import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
@@ -244,7 +245,25 @@ public class WsHumanTaskLifeCycle implements 
UserTaskLifeCycle {
                 .findAny()
                 .orElseThrow(() -> new UserTaskTransitionException("Invalid 
transition " + transitionId + " from " + state));
 
-        return new DefaultUserTaskTransitionToken(transition.id(), 
transition.source(), transition.target(), data);
+        Map<String, Object> normalizedData = new HashMap<>();
+        data.forEach((k, v) -> {
+            if (PARAMETER_USER.equalsIgnoreCase(k)) {
+                normalizedData.put(PARAMETER_USER, v);
+            } else if (PARAMETER_NOTIFY.equalsIgnoreCase(k)) {
+                normalizedData.put(PARAMETER_NOTIFY, v);
+            } else if (PARAMETER_DELEGATED_USER.equalsIgnoreCase(k)) {
+                normalizedData.put(PARAMETER_DELEGATED_USER, v);
+            } else if (PARAMETER_FORWARDED_USERS.equalsIgnoreCase(k)) {
+                normalizedData.put(PARAMETER_FORWARDED_USERS, v);
+            } else if (PARAMETER_NOMINATED_USERS.equalsIgnoreCase(k)) {
+                normalizedData.put(PARAMETER_NOMINATED_USERS, v);
+            } else if (PARAMETER_SUSPEND_UNTIL.equalsIgnoreCase(k)) {
+                normalizedData.put(PARAMETER_SUSPEND_UNTIL, v);
+            } else {
+                normalizedData.put(k, v);
+            }
+        });
+        return new DefaultUserTaskTransitionToken(transition.id(), 
transition.source(), transition.target(), normalizedData);
     }
 
     public Optional<UserTaskTransitionToken> activate(UserTaskInstance 
userTaskInstance, UserTaskTransitionToken token, IdentityProvider 
identityProvider) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to