GopikaReghunath commented on code in PR #4273:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4273#discussion_r3389013551
##########
kogito-codegen-modules/kogito-codegen-processes/src/main/resources/class-templates/usertask/RestResourceUserTaskQuarkusTemplate.java:
##########
@@ -87,8 +84,49 @@ public void init() {
@GET
@Produces(MediaType.APPLICATION_JSON)
- public List<UserTaskView> list(@QueryParam("user") String user,
@QueryParam("group") List<String> groups) {
- return
userTaskService.list(identityProviderFactory.getOrImpersonateIdentity(user,
groups));
+ public Object list(
+ @QueryParam("user") String user,
+ @QueryParam("group") List<String> groups,
+ @QueryParam("format") String format,
+ @QueryParam("processId") String processId,
+ @QueryParam("processInstanceId") String processInstanceId,
+ @QueryParam("status") List<String> status,
+ @QueryParam("taskName") String taskName) {
+
+ // Build filter from query parameters
+ UserTaskFilter.Builder filterBuilder = UserTaskFilter.builder()
+ .processId(processId)
+ .processInstanceId(processInstanceId)
+ .taskName(taskName);
+
+ // Handle multiple status values
+ if (status != null && !status.isEmpty()) {
Review Comment:
comment addressed
--
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]