Oracle Analyses related to processes


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(CONCAT(to_char(inst.CREATIONTIME,'yyyy'), '-'), to_char(inst.CREATIONTIME,'mm')) AS Month, SUM(1) AS COUNT FROM view_instance inst GROUP BY CONCAT(CONCAT(to_char(inst.CREATIONTIME,'yyyy'), '-'), to_char(inst.CREATIONTIME,'mm')) Order by CONCAT(CONCAT(to_char(inst.CREATIONTIME,'yyyy'), '-'), to_char(inst.CREATIONTIME,'mm')) DESC;

 

Average number of started instances per day per month (22 working days a month)

SELECT CONCAT(CONCAT(to_char(inst.CREATIONTIME,'yyyy'), '-'), to_char(inst.CREATIONTIME,'mm')) AS Month, ROUND(SUM(1)/22,1) AS "Average per day" FROM view_instance inst GROUP BY CONCAT(CONCAT(to_char(inst.CREATIONTIME,'yyyy'), '-'), to_char(inst.CREATIONTIME,'mm')) Order by CONCAT(CONCAT(to_char(inst.CREATIONTIME,'yyyy'), '-'), to_char(inst.CREATIONTIME,'mm')) DESC;

 

Number of started and completed instances for each definition

SELECT inst1.definitionname AS "Process", 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 LEFT JOIN view_task task ON task.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

Â