Count every time user task is activate

hi
I want every time process is arrives to specific user task , add a count .
please guide me
tnx

Hi @rezza72,

Do you want to count the times a user task is active within a single process instance? Then you could simply have a process instance variable and increment it every time the task is completed.

If you want to count across multiple process instances then what you will need is a storage outside the engine as described in this post.

Cheers,
Miklas

1 Like

Hi @rezza72,

try this REST call: https://docs.camunda.org/manual/7.10/reference/rest/history/task/get-task-query-count/ like

GET /history/task/count?taskDefinitionKey=myTaskIDFromModeler

Hope this helps, Ingo

1 Like