Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drhudgins opened this issue Feb 14, 2023 · 1 comment

Comments

@drhudgins
Copy link

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")

  • processanimateR::animate_process(rankdir = "TD", mode = "absolute", initial_state = "paused")
    Warning: Object is activity log. Timestamps are stored in 0 columns.Error in rlang::sym():
    ! Can't convert NULL to a symbol.
    Backtrace:
  1. activities %>% ...
  2. processanimateR:::timestamp_(eventlog)
  3. rlang::sym(bupaR::timestamp(eventlog))

The workaround is to convert to eventlog()

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

@gertjanssenswillen
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants