Need help on complex java object querying

Hello all,

I am currently using camunda 7 to develop my workflow application.

Using embedded process engine with spring boot.

In my bpmn, there will be only one process variable, which will be a complex java class like below
{
“intValue”:1,
“stringValue”:“tteesstt”,
“arrayofobjects”:[{
“sample”:“1”
},{
“sample”:“2”
}],
“arrayofstring”:[“1”,“2”]
}

incase if i want to get all the process instances containing stringValue as “tteesstt”, How do i query it using the Camunda Process Engine APIs(Process Engine API | docs.camunda.org) like Runtimeservice API.

Thanks

Hi @DineshDinesh,

complex variables could not used in queries. They are stored in a binary table.

You could create a String variable with the attibutes, you want to search for: Extending human task management in Camunda 7 | Camunda Platform 8

Hope this helps, Ingo

1 Like

Thanks Ingo for the response