Hi, I am using Search flonode-instances http://localhost:8080/v1/flownode-instances/search
to retrieve all the history for the process instance, but it is very important to me to know the assignee of each flow node (step), and the variables for each flow node (step), how to do that ?
since the current APIs returns only the following:
Hi! Great question about retrieving process variables and task assignees when using the Search flownode-instances API in Camunda 8.7.
Unfortunately, the /v1/flownode-instances/search endpoint doesn’t directly return process variables or task assignee information in a single response. You’ll need to use a combination of API calls to get all the information you need:
1. Get Process Variables
For process variables, use the Operate API’s variables search endpoint:
POST http://localhost:8080/v1/variables/search
Filter by the processInstanceKey that you get from your flownode-instances response:
This will return all variables for that process instance.
2. Get Task Assignee
For task assignees, you’ll need to use the Tasklist API since the Operate API doesn’t expose assignee information. The challenge here is that the Tasklist API works with task IDs, not flownode instance IDs.
Approach:
Use the Tasklist API to search for tasks by process instance:
POST http://localhost:8080/tasklist/v1/tasks/search
I understand you want the flownode-instances search result to contain assignee and process variables in a single response. Unfortunately, this is not currently possible with the Camunda 8 APIs.
Current API Limitations
The /v1/flownode-instances/search endpoint in the Operate API does not support including variables or assignee information in its response. This is a known limitation of the current API design:
Process variables must be retrieved separately using /v1/variables/search
Task assignees must be retrieved separately using the Tasklist API
No single endpoint currently combines all this information
Why This Limitation Exists
This separation exists because:
Different services: Operate handles process execution history, while Tasklist handles task management
Performance: Including all related data in every response would significantly impact performance
API design: Each API is focused on its specific domain
Potential Workarounds
If you need this functionality, you have a few options:
Create a wrapper service that makes multiple API calls and combines the results
Use GraphQL (if available in your setup) to combine multiple queries
Cache frequently accessed data to reduce the number of API calls needed
Feature Request
If this functionality is important for your use case, I’d recommend submitting a feature request to the Camunda team: