Prateek Jain
Prateek Jain

Reputation: 3045

Fetching currently executing tasks for a flow

We just started with camunda and looking for api which can give us all tasks which are currently getting executed. I know that it does provide state information like PENDING and COMPLETED but I am particularly interested in "EXECUTING" state. Is there a way to find it? Is it safe to assume that if task is not in COMPLETED/ERROR and PENDING state, then it is getting executed?

note: using camunda 7.9.0 - Jboss packaging

Upvotes: 0

Views: 79

Answers (1)

Jan Galinski
Jan Galinski

Reputation: 11993

Assuming that you are talking about user tasks, the safest way is to perform a claim() on the task when a user starts working. Then you can assume that every task that has an assignee is currently being worked on.

Upvotes: 1

Related Questions