返工分析
在檢視流程結構時,「返工」是值得關注的一個面向。當同一個活動在單一個案中被重複執行時,就發生了返工。這通常代表時間與資源的浪費,且往往源於必須被修正的錯誤。
我們可以區分兩種返工型態:1)立即返工,也就是活動的「自我迴圈」;2)在流程後段才出現的返工,我們稱為「重複」(repetitions)。本練習將聚焦在後者。
number_of_repetitions 是一個可以針對下列層級計算的指標:
- 整個事件
"log"、 - 各個
"case"、 - 各個
"activity"、 - 各個
"resource",或 - 各個
"resource-activity"配對。
本練習屬於課程
R 商業流程分析
練習說明
使用 number_of_repetitions() 指標,並搭配合適的 level 參數,回答關於 sepsis 流程的每個問題。
- 針對整個事件 log,此流程的重複次數最小值、最大值與平均值各是多少?
- 誰對重複最負責,也就是哪一個 resource?
- 哪個 activity 的重複次數最多?
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Min, max and average number of repetitions
___
# Number of repetitions per resource
___
# Number of repetitions per activity
n_reps_per_activity <- ___
# See the result
n_reps_per_activity
# See the result in a plot
plot(n_reps_per_activity)