MSSQL Analyses related to processes
- 1 Process-Related
- 1.1 Instance-Related
- 1.1.1 Number of started instances per month
- 1.1.2 Average number of started instances per day per month (22 working days a month)
- 1.1.3 Number of started and completed instances for each definition
- 1.1.4 Number of started, completed, aborted and running instances for each process definition
- 1.1.5 Activities, tasks and assigned users of running instances
- 1.1.6 Average cycle time (in h) of all instances of all process definitions per month
- 1.1.7 Number of started instances per month (columns) per year (rows) for a definition
- 1.1.8 Cumulative number of started instances per month (columns) per year (rows) for a definition
- 1.1.9 Minimum, maximum and average cycle time (in h) of instances per process definition
- 1.2 Definitions-Related
- 1.1 Instance-Related
Process-Related
This article offers examples for instance and definition related analyses with the dashboard.
Instance-Related
Number of started instances per month
SELECT
concat(DATEPART(yy, inst.creationTime),'-', DATEPART(mm, inst.creationTime)) AS Month,
SUM(1) AS Count
FROM view_instance inst
GROUP BY concat(DATEPART(yy, inst.creationTime), '-', DATEPART(mm, inst.creationTime))
Â
Average number of started instances per day per month (22 working days a month)
SELECT
concat(DATEPART(yy, inst.creationTime),'-', DATEPART(mm, inst.creationTime)) AS Month,
ROUND(SUM(1)/22,1) AS "Average per day"
FROM view_instance inst
GROUP BY concat(DATEPART(yy, inst.creationTime), '-', DATEPART(mm, inst.creationTime))
Â
Number of started and completed instances for each definition
SELECT
inst1.definitionname AS Prozess,
COUNT(DISTINCT(inst1.id)) AS 'Number of started instances',
COUNT(DISTINCT(inst2.id)) AS 'Number of completed instances'
FROM view_instance inst1
LEFT JOIN view_instance inst2 ON inst1.id=inst2.id AND inst2.instanceEnd IS NOT NULL
INNER JOIN view_activity act ON act.instanceid=inst1.id
GROUP BY inst1.definitionname;​
Â
Number of started, completed, aborted and running instances for each process definition
Â
Activities, tasks and assigned users of running instances
Â
Average cycle time (in h) of all instances of all process definitions per month
Â
Number of started instances per month (columns) per year (rows) for a definition
Â
Cumulative number of started instances per month (columns) per year (rows) for a definition
Â
Minimum, maximum and average cycle time (in h) of instances per process definition
Â
Definitions-Related
Number of loops (>0) per definition
Â
© TIM Solutions GmbH | AGB | Datenschutz | Impressum