The paper discusses how process mining can be used to gain insights and automatically regulate processes in real time. It highlights the need for thorough testing to avoid side effects and proposes using discrete-event simulation in production and logistics to mitigate risks.