Hello,
I want to apply multiple filter with operate searchVariables() query.
My current code to get Variable list based on VariableFilter but it’s returning the Process variable which are already completed or Canceled with ACTIVE one and returning just 10 records and I want to fetch all records apart from this it is also returning other process variable where I have this same variable.
I just want fetch from particular process and only ACTIVE processes.
VariableFilter depositSummaryIdFilter = new VariableFilter();
depositSummaryIdFilter.setName(ProcessConstants.DEPOPSIT_SUMMARY_ID);
String depositSummaryId = String.valueOf(depositConfirmationVO.getDepositSummaryId());
depositSummaryIdFilter.setValue(depositSummaryId);
SearchQuery searchQuery = new SearchQuery();
searchQuery.setFilter(depositSummaryIdFilter);
List<Variable> variableList = camundaOperateClient.searchVariables(searchQuery);
I’m using camunda 8.5.2 and below is my maven dependency for same.
<dependency>
<groupId>io.camunda.spring</groupId>
<artifactId>spring-boot-starter-camunda</artifactId>
<version>8.5.2</version>
</dependency>
Thank you for the help.