Process Instance search based on Multiple Instance Variable

Hi,

I am using Camunda 8.2 and my workflow/process have multiple instance variables like customername, ssn,dob, zip, PlanName etc .

1 ) Requirement : UI should see all active instances from camunda 8 based on input field values.

Example: In UI user can select customername=“John”, City=“Texas” and PlanName="Individual and click search, then it should see all active instances that matches these variable values (AND condition)

I tried using Operate REST API but there is no way i can search process instance based on multiple variable values.

Can someone please suggest how to effectively achieve this?

Requirement 2 : In UI user can click on GetmyTask and also provide customername=“John”, City=“Texas” and PlanName="Individual and click search

UI should display all process instance where Task is Assigned to me and for which process instance variable value matches to what is provided in input.

I am using Task REST API to get all process instance details based on assignee and taskdefinitionId . This give me list of all process instances where task is assigned to me

Now from all those process instances, i only want to see those for which variable values provided in search matche which is challenge

Please let me know how to acheive this efficiently .

.@Niall I am hoping you see this as well and would really appreciate if someone from Camunda can respond as well along with our great community .

Hi @hemantjoshi03 - welcome to the forums! Unfortunately I don’t have a workaround to suggest (hopefully someone else might!), but I wanted to share that our engineering teams are working on a feature to be able to filter using multiple variables. You can track the ticket here: Tasklist API: Filter Tasks by Task Variables · Issue #194 · camunda/issues · GitHub

Hi @nathan.loding Thanks for your reply. Do you know the timeline when this feature will be available to use? Also our requirement is more for process instance filtering based on multiple variables . Operate API to filter process instances based on multiple variable values ( AND condition )

I am little surprised this wasn’t provided out of the box from the start as this is very common requirement in headless implementations.

I don’t have a timeline, unfortunately, but that GitHub issue is public and you should be able to follow it for updates. I also opened a feature request with the Operate team to look into implementing this on their end also.