bupaverse / processanimateR

Token replay animation for process maps created with processmapR by using SVG animations (SMIL) and the htmlwidget package.
https://bupaverse.github.io/processanimateR/
Other
66 stars 11 forks source link

Must call bupaR::to_eventlog() when using absolute or relative animation mode #46

Open drhudgins opened 1 year ago

drhudgins commented 1 year ago

Create activity log

activities <- df %>% bupaR::activitylog(case_id = "order_id", activity_id = "activity_id", timestamps = c("start", "complete"), resource_id = "resource_id")

Works when mode = "off" but breaks when mode = "absolute" or "relative"

activities %>% processanimateR::animate_process(rankdir = "TD", mode = "off", initial_state = "paused")

activities %>% processanimateR::animate_process(rankdir = "TD", mode = "absolute", initial_state = "paused")

The workaround is to convert to eventlog()

activities %>% bupaR::to_eventlog() %>% processanimateR::animate_process(rankdir = "TD", mode = "absolute", initial_state = "paused")

gertjanssenswillen commented 1 year ago

It seems processanimatR is not fully compatibly to the activtylog format yet. While converting to event log helps, let's leave this issue here until proper compatibility is in place