Execute the below query which fetch the number of process instances on the server and their current state.
SELECT
decode (state,
0 , 'Initiated',
1 , 'Open and Running',
2 , 'Open and Suspended',
3 , 'Open and Faulted',
4 , 'Closed and Pending',
5 , 'Closed and Completed',
6 , 'Closed and Faulted',
7 , 'Closed and Cancelled',
8 , 'Closed and Aborted',
9 , 'Closed and Stale',
'Unknown') "Process State",
COUNT (*) "Number Of Processes"
FROM dev_soainfra.cube_instance
WHERE creation_date < sysdate AND creation_date > (sysdate-100)
GROUP BY state;
Output :
SELECT
decode (state,
0 , 'Initiated',
1 , 'Open and Running',
2 , 'Open and Suspended',
3 , 'Open and Faulted',
4 , 'Closed and Pending',
5 , 'Closed and Completed',
6 , 'Closed and Faulted',
7 , 'Closed and Cancelled',
8 , 'Closed and Aborted',
9 , 'Closed and Stale',
'Unknown') "Process State",
COUNT (*) "Number Of Processes"
FROM dev_soainfra.cube_instance
WHERE creation_date < sysdate AND creation_date > (sysdate-100)
GROUP BY state;
Output :
Happy Coding :)
No comments:
Post a Comment