Young Harry
Young Harry

Reputation: 97

How to get a Tasklist in Camunda?

It looks like the Camunda doesn't provide tasklist with a Java method, and I still cannot find how to redo or skip a task in a case. It puzzles me that why not provide the basic method in Camunda?

Upvotes: 1

Views: 364

Answers (1)

jklee
jklee

Reputation: 2268

How do you currently call tasks?

Camunda has something better than a basic Java method, a TaskQuery. So you can easy find all active tasks

List<Task> list = taskService.createTaskQuery()
.active()
.list();

or all active task for a user

List<Task> list = taskService.createTaskQuery()
.active()
.taskCandidateUser("YOUR_USER")
.list();

Upvotes: 3

Related Questions