Enriching events

Business Process Analytics in R

Gert Janssenswillen

Creator of bupaR

Mutate new variables

Business Process Analytics in R

Mutate new variables

log %>%
    group_by_case() %>%
    mutate(total_cost = sum(cost, na.rm = T)
Business Process Analytics in R

Mutate new variables

log %>%
    group_by_case %>%
    mutate(total_cost = sum(cost, na.rm = T) %>%
    mutate(impact = case_when(cost <= 1000 ~ "Low",
                              cost <= 5000 ~ "Medium",
                              T ~ "High"))
Business Process Analytics in R

Mutate new variables

log %>%
    group_by_case %>%
    mutate(refund_made = any(str_detect(activity, "Pay Claim"))) 
Business Process Analytics in R

Adding process metrics

Adding information about a case to the original data

  • Its througput time
  • Its length
  • Its amount of rework
  • ...

Adding information about activities

  • Its frequency
  • Its specialization by resources
  • ...
Business Process Analytics in R

Adding process metrics

log %>%
    throughput_time(level = "case", units = "days", append = TRUE)

log %>%
    throughput_time(level = "case", units = "days", append = TRUE) %>%
    mutate(on_time = processing_time_case <= 7)

Business Process Analytics in R

Let's practice!

Business Process Analytics in R

Preparing Video For Download...