Kavin1129 opened a new issue, #4190:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/4190

   I am encountering an issue regarding the retrieval of a taskId to perform 
human task lifecycle operations (such as claim).
   
   **What I am seeing** : When I start a workflow, I receive a 
processInstanceId. However, to perform operations like claim on a human task, I 
require the specific taskId.
   
   - Currently, the API only allows retrieving tasks by user (e.g., GET 
/usertasks/instance?user=john), which returns tasks assigned to that user.
   
   - There is no direct endpoint to fetch the taskId specifically using the 
processInstanceId.
   
   - I discovered an endpoint that returns an externalReferenceId. While this 
ID can be used to complete a workflow, it cannot be used to claim or perform 
other lifecycle transitions.
   
   **What I would expect to see**:  I expect an API endpoint that allows 
fetching the taskId associated with a specific processInstanceId. 
Alternatively, if externalReferenceId is intended to replace taskId, it should 
support all transiplete.
   
   **Environment**:
   Kogito Version:  10.1.0 and 999-SNAPSHOT
   Java Version: 21
   Maven Version:  3.9.12
   Quarkus: 3.20.3
   
   
   **Reproduction Steps**
   use the process-usertasks-ws-humantask-lifecycle-quarkus example
   1. Start a new workflow process instance that contains a human task.
   2. Capture the processInstanceId.
   3. Attempt to retrieve the taskId for this specific instance without 
querying all tasks for a user.
   4. Attempt to use the externalReferenceId to claim the task (this fails).
   5. Attempt to use the externalReferenceId to complete the task (this 
succeeds).
   
   **Example**:
   
   compare both images to see the difference in the id's returned
   
   <img width="300" height="300" alt="Image" 
src="https://github.com/user-attachments/assets/edb359f1-4a3b-4f7e-bc28-6abb0ba49aa0";
 />
   <img width="300" height="300" alt="Image" 
src="https://github.com/user-attachments/assets/5ab804ad-1e2d-4827-8149-e0d362401ae1";
 />
   
   


-- 
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]

Reply via email to