Get Approved/Rejected task

I am trying to fetch the approved/rejected task, not sure how can do it using java code.

Given example,
User is applying for holiday approval, that creates task to manager to either approve or reject, now upon managers action I want to fetch the approved and rejected task which user has requested for.

How can I do it using Java Code?

Hi @Ashutosh

You could store the approval decision on the task instance, for example approved = [true / false] and later on you can query against it:

List<Task> approvedTasks =  taskService.createTaskQuery()
.taskVariableValueEquals("approved", true)


1 Like