Hi @claudio_rio,
Based on your question, I can classify this as a Problem - the methods you’re trying to use are not behaving as expected.
The short answer is: These methods are not fully operational in Camunda 8.7, and this is expected behavior.
Current Status of Process Instance Query Methods
The newProcessInstanceSearchRequest() and newProcessInstanceGetRequest() methods you’re trying to use are part of the alpha Query API in Camunda 8.7. Here’s what’s happening:
1. Alpha Feature Status
- These process instance query endpoints are alpha features in Camunda 8.7
- They are not fully stable or enabled by default
- You must explicitly enable the Query API with
CAMUNDA_REST_QUERY_ENABLED=true - Even when enabled, you may encounter limitations and issues
2. The MalformedResponseException
The exception you’re seeing suggests a response structure mismatch. This can happen because:
- The client expects certain response fields that the server doesn’t provide
- There may be API version mismatches (client using v2 endpoints while server exposes v1)
- The alpha API implementation is not fully stable
3. Client Transition Period
In Camunda 8.7, there’s an ongoing transition from the Zeebe Java client to the unified CamundaClient. The process instance query functionality is limited and not fully implemented yet.
Recommendations
For Camunda 8.7:
-
Use the Operate API instead for process instance queries:
// Use Operate API for reliable process instance queries // See: https://docs.camunda.io/docs/apis-tools/operate-api/ -
Enable Query API (if you want to experiment with alpha features):
CAMUNDA_REST_QUERY_ENABLED=true
For Production Use:
Upgrade to Camunda 8.8 or later where:
- The
CamundaClientbecomes the official unified Java client - Process instance query methods are expected to be stable and fully available
- Use the new
io.camunda:camunda-client-javaartifact
Alternative Solutions
Until you can upgrade, consider:
- Using the Operate API directly via REST calls
- Using the Camunda 8 REST API (alpha) endpoints directly
The lack of examples in the GitHub repository you mentioned confirms that these features are not yet ready for general use in 8.7.
References:
- Camunda 8.7 Release Announcements
- Query Process Instances (Alpha) Documentation
- Operate API Documentation
Hope this clarifies the current status! Let me know if you need help with alternative approaches or have questions about upgrading.