Hi, all. I'm a student working on ode development. These days I was looking through the source code of ode, especially the Management API. I met with some problems when I tried to understand DebugSupport class in bpel-runtime package.
DebugSupport offers suspend() and resume() function, and I also understand that these functions change the state of the process instance. But what's the effect of the function onEvent()? I cannot figure out why suspend() and resume() invoke it at the end of their execution. I also don't understand how the engine knows when to suspend according to the state of process instance dao. Could you tell me which function actually suspends the execution of engine? Best, Robin