I am building a demo data generator that pumps the engine with process instances. One of the things I want to do is to have some activities to have longer durations than others, so we can show the duration heat map in Optimize for example. Up until now I am pausing the process to do this (using durations of msecs), but that is not practical for large numbers of processes or durations that might last days!
There are ways of overriding the Java clock in a JVM using
java.time.Clock, but I am thinking that will affect the clock for the whole JVM. I want to be able to fast forward time for individual activities within a given process instance.
So, is there a way of overriding the start and end times of an activity, once the activity has completed?