Worklet Run Details
Displays the run statistics of all worklets by repository by folder.
Click on the text to copy the query report to your clipboard.
select "RUN_ERR_MSG",
"SUBJECT_AREA",
"REPOSITORY_NAME",
"END_TIME",
"WORKFLOW_NAME",
case when ("RUN_STATUS_CODE" <= 9) then (case when ("RUN_STATUS_CODE" = 1) then ('Succeeded') else (case when ("RUN_STATUS_CODE" = 2) then ('Disabled') else (case when ("RUN_STATUS_CODE" = 3) then ('Failed') else (case when ("RUN_STATUS_CODE" = 4) then ('Stopped') else (case when ("RUN_STATUS_CODE" = 5) then ('Aborted') else (case when ("RUN_STATUS_CODE" = 6) then ('Running') else (case when ("RUN_STATUS_CODE" = 7) then ('Suspending') else (case when ("RUN_STATUS_CODE" = 8) then ('Suspended') else (case when ("RUN_STATUS_CODE" = 9) then ('Stopping') else ('') end) end) end) end) end) end) end) end) end) else (case when ("RUN_STATUS_CODE" = 10) then ('Aborting') else (case when ("RUN_STATUS_CODE" = 11) then ('Waiting') else (case when ("RUN_STATUS_CODE" = 12) then ('Scheduled') else (case when ("RUN_STATUS_CODE" = 13) then ('UnScheduled') else (case when ("RUN_STATUS_CODE" = 14) then ('Unknown') else (case when ("RUN_STATUS_CODE" = 15) then ('Terminated') else ('') end) end) end) end) end) end) end as "Calc_RUN_STATUS_CODE",
"START_TIME",
"RUN_ERR_CODE",
"TASK_NAME"
from (SELECT DISTINCT WORKLET_REPOSIT_INFO.REPOSITORY_NAME, ALL_WORKLETS.SUBJECT_AREA, ALL_WORKLETS.TASK_NAME, WORKLET_RUN.WORKFLOW_NAME, WORKLET_RUN.START_TIME as START_TIME, to_char(WORKLET_RUN.END_TIME,'mm/dd/yy HH:MI:SS AM') as END_TIME, WORKLET_RUN.RUN_STATUS_CODE AS RUN_STATUS_CODE, WORKLET_RUN.RUN_ERR_CODE, WORKLET_RUN.RUN_ERR_MSG AS RUN_ERR_MSG FROM REP_ALL_TASKS ALL_WORKLETS, REP_TASK_INST_RUN WORKLET_RUN, REP_REPOSIT_INFO WORKLET_REPOSIT_INFO WHERE (ALL_WORKLETS.TASK_ID = WORKLET_RUN.TASK_ID AND ALL_WORKLETS.VERSION_NUMBER = WORKLET_RUN.TASK_VERSION_NUMBER AND ALL_WORKLETS.TASK_ID <> WORKLET_REPOSIT_INFO.REPOSITORY_ID AND ALL_WORKLETS.TASK_TYPE = 70)) "query"
where "SUBJECT_AREA" in ('<Folder_Name>') and "TASK_NAME" in ('<Worklet_Name>') and "START_TIME" between DATE '<Start_Date>' and DATE '<End_Date>'
order by "REPOSITORY_NAME", "SUBJECT_AREA"