Vahid Alizadeh
Vahid Alizadeh

Reputation: 267

camunda exception: cannot set both candidateGroupIn and candidateUser

i'm migrating from activiti to camunda. already i used query to get all tasks that user involved to by condidateUser or CandidateGroup properties. how i do it in camunda?

taskService.createTaskQuery().or().taskCandidateUser(userId).
           taskCandidateGroupIn(userRoles).endOr().active()

Upvotes: 4

Views: 257

Answers (1)

Rasool Ghafari
Rasool Ghafari

Reputation: 4278

Because before version 7.8, camunda does not support or() and Endor() methods. if you want to use those methods change version to 7.8.

Upvotes: 2

Related Questions