josedee commented on code in PR #4273:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4273#discussion_r3241249849
##########
kogito-codegen-modules/kogito-codegen-processes/src/main/resources/class-templates/usertask/RestResourceUserTaskQuarkusTemplate.java:
##########
@@ -273,4 +333,65 @@ public Attachment getAttachment(
.orElseThrow(() -> new
UserTaskInstanceNotFoundException("Attachment " + attachmentId + " not found"));
}
+ @GET
+ @Path("/{taskName}/schema")
+ @Produces(MediaType.APPLICATION_JSON)
+ public Map<String, Object> getSchemaByTaskName(
+ @PathParam("taskName") String taskName,
+ @QueryParam("user") String user,
+ @QueryParam("group") List<String> groups) {
Review Comment:
@GopikaReghunath I have my doubts over this implementation. What happens if
we have
- Two different processes with same task name and different schema
- Same process with two tasks with same task name
Aren't these scenarios possible. Shouldn't we use something unique like task
definition id
cc: @martinweiler @pefernan Would like to hear your thoughts
--
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]