活动是流程的基石

R 中的业务流程分析

Gert Janssenswillen

Creator of bupaR

示例:在线学习

R 中的业务流程分析

事件日志初探

了解事件日志范围

  • 描述了多少个案例?
  • 有多少个不同的活动?
  • 记录了多少个事件?
  • 数据记录的时间范围是什么?
R 中的业务流程分析
library(bupaR)

可打印事件日志的摘要查看此信息

summary(learning)

或使用计数函数。

n_cases(learning)
498
n_activities(learning)
10
R 中的业务流程分析

活动

活动描述流程走向

  • 执行了哪些动作?
  • 执行顺序如何?
R 中的业务流程分析

探索活动

activity_labels(learning)
 [1]  "Consult Dictionary"   "Consult Theory Pages" "Exercise 1"           
 [4]  "Exercise 2"           "Exercise 3"           "Exercise 4"          
 [7]  "Exercise 5"           "Exercise 6"           "Exercise 7"        
 [10] "Assessment" 
R 中的业务流程分析

探索活动

activities(learning)
# A tibble: 10 x 3
  action               absolute_frequency relative_frequency
   <chr>                             <dbl>              <dbl>
 1 Exercise 1                         516              0.142 
 2 Assessment                         498              0.137 
 3 Exercise 2                         493              0.135 
 4 Exercise 4                         442              0.121 
 5 Exercise 3                         436              0.120 
 6 Exercise 5                         360              0.0988
 7 Exercise 6                         302              0.0829
 8 Exercise 7                         299              0.0820
 9 Consult Dictionary                 165              0.0453
R 中的业务流程分析

探索活动序列

每个案例由一串活动描述,即其轨迹。

R 中的业务流程分析

探索活动序列

  • 可用 traces 函数获取轨迹频数表
traces(learning)
  • 可用 trace_explorer 函数可视化
trace_explorer(learning)
R 中的业务流程分析

Let's practice!

R 中的业务流程分析

Preparing Video For Download...