martinweiler commented on code in PR #4273:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4273#discussion_r3363923895
##########
api/kogito-api/src/main/java/org/kie/kogito/usertask/UserTaskService.java:
##########
@@ -34,13 +37,15 @@ public interface UserTaskService {
List<UserTaskView> list(IdentityProvider identity);
+ List<UserTaskInfoView> listTasks(IdentityProvider identity, UserTaskFilter
filter);
+
Optional<UserTaskView> transition(String taskId, String transitionId,
Map<String, Object> data, IdentityProvider identity);
List<UserTaskTransitionView> allowedTransitions(String taskId,
IdentityProvider identity);
- Optional<UserTaskView> setOutputs(String taskId, Map<String, Object> data,
IdentityProvider identity);
+ Optional<UserTaskOutputsView> setOutputs(String taskId, Map<String,
Object> data, IdentityProvider identity);
- Optional<UserTaskView> setInputs(String taskId, Map<String, Object> data,
IdentityProvider identity);
+ Optional<UserTaskInputsView> setInputs(String taskId, Map<String, Object>
data, IdentityProvider identity);
Review Comment:
@cimbalek thanks for highlighting this! I agree that this is a breaking
change, but one that has been done intentionally. There are other endpoints
available which return the full UserTaskView that users can call if needed.
Returning the new `UserTaskInputsView` / `UserTaskOutputsView` streamlines the
response for the input/output related endpoints.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]