Table of Contents |
---|
...
Task- and Activity-related
This article offers examples for task and activity related analyses with the dashboard.
...
All open tasks for a specific user
Code Block | ||
---|---|---|
| ||
SELECT
ident.lastname AS "Lastname",
ident.firstname AS "Firstsname",
ident.identityName AS "Username",
task.taskName AS "Task",
inst.instanceName AS "Instance name",
inst.definitionName AS "Processname"
FROM view_activity act, view_task task, view_identity ident, view_instance inst
WHERE act.id = task.activityId
AND task.actorId = ident.id
AND act.activityEnd IS NULL
AND task.taskEnd IS NULL
AND inst.id = act.instanceId
AND inst.isArchiv = 'false'
AND inst.instanceEnd IS NULL
AND ident.FIRSTNAME = '<specific_user_firstname>'
AND ident.lastname = '<specific_user_lastname>' |
Number of created, completed, and open tasks for each process definition
Code Block | ||
---|---|---|
| ||
SELECT
inst.definitionName AS "Definition name",
SUM(1) AS "Number of created tasks",
Sum(CASE WHEN task.taskEnd IS NOT NULL THEN 1 ELSE 0 END) AS "Number of completed tasks",
SUM(CASE WHEN task.taskEnd is NULL AND task.isArchiv = 'false' THEN 1 ELSE 0 END) AS "Number of open tasks"
FROM view_task task
INNER JOIN view_instance inst ON task.instanceID=inst.id
GROUP BY inst.definitionName |
...
Activity-Related
Average, minimum and maximum cycle time of all activities of a specific process definition (in h) per month
...