Parsing Filter Query on the Java API

Hello,

I have a project which uses Camunda through the Java API. I need to define Filters in my project without using the Tasklist. I checked how the filter criteria is stored in the database, and I saw it’s saved in JSON format.

My question is: how do I parse the Filter Query as returned by the Java API into JSON and how do I parse JSON back into a Filter Query?

Thanks for your help!

Hi @j.abbona,

if you use the FilterService via Java API then you don’t need to handle with JSON. You can pass a usual query (e.g. task query) to the filter. Please have a look at the test cases.

Does this help you?

Best regards,
Philipp