KUDOs to you, too, for giving it a try! It is feature complete since v0.25.0
so a good time to play around with it.
It should be fairly easy for you to extract what is in that test to a re-usable component.
For experimental purposes I’ve done that in this codesandbox. What you get as a result is a click-and-play experience.
Drive the process via API:
const simulationSupport = modeler.get("simulationSupport");
// toggle pause on activity
simulationSupport.triggerElement("Activity_1jmvmoa");
// start simulation
simulationSupport.triggerElement("StartEvent_1");
await simulationSupport.elementEnter("Activity_1jmvmoa");
window.alert("WANT ME TO CONTINUE?");
// trigger un-pause
simulationSupport.triggerElement("Activity_1jmvmoa");