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

Animating incomplete processes #18

Open sheepworrier opened 5 years ago

sheepworrier commented 5 years ago

I've got a process with 22 case_ids (cases) and 7 activity_ids (stages). All 22 cases have gone through the first 3 stages, but only 7 cases have moved on to stages 4-7. The other 15 are still stuck at stage 3. On the animation I would like to see that they are still stuck there, but instead they move straight to the End node as soon as they hit stage 3.

Is there a way to get my desired behaviour?

fmannhardt commented 5 years ago

Hi, interesting use case for monitoring that I also have come across. This is currently not easy to achieve. I think the code works if you "hack" processmapR into not generating the "End" node, but the tokens will disappear after a while.

You might be able to simulate the behaviour by introducing a very long processing time for these tokens on the respective activities, but that would screw up the timeline and other stuff.

I think somehow signaling termination (or in progress state) of a process by a special symbol instead of an edge to the end would be useful to have. Can also clean up the process map a lot.

lindeloev commented 4 years ago

I want to put my vote on this suggestion too. It would be great to animate incomplete traces on a map without edges to the start- and end-nodes so that you could start/end the animation with the actual state rather than only with yet-to-start and yet-to-finish cases. In other words, it would be great if animations worked with left-censored and right-censored data.

In our case, the ideal would be that this is rather subtle: have cases fade in at the first recorded activity and fade out after the last recorded activity, without adding extra symbols.

Thanks again for a great package! The out-of-the-box shiny integration is awesome.

LoganCones commented 11 months ago

I have this exact use case as well! Absolutely love this package but am running into the same issue with incomplete cases. Would be great to be able to highlight where the cases are "stuck" somehow.