Question & Answer
Question
How is the "at Risk" status of a task calculated?
Answer
The average historical time to complete the task is used to determine when a task becomes "at Risk". The logic is represented by the following formula:
"at Risk" = (Avg Historical Time to Complete Task + Current Time) > Task Due Date
If there is no historical data for this task, 9999 days is used as the average time to complete it, so it will always show up as "at risk" until there is at least one data point.
Note: This calculation is done against the data in the Process Server Database and not the Performance Server.
The query that gets run against the Process database, and not the Performance Data Warehouse database, to determine the average time for this task is as follows (MS SQL version of the query):
SELECT isnull(avg(datediff(ss,allTasks.rcvd_datetime,allTasks.close_datetime)),86400*9999)FROM lsw_task allTasks WHERE allTasks.created_by_bpd_flow_object_id = t3.created_by_bpd_flow_object_id AND allTasks.close_datetime is not null
This query returns the average number of seconds that are required to complete this task.
Historical Number
206
Product Synonym
TW 6.x TW 7.x
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21439654