I have encountered a new problem. Previously we decided to create a
custom EndNode to achieve my need to have an explicit EndNode, however I
realized this approach has side effect. This is because when the token
reaches the End Node, Sarasvati still fires all the registered
listeners like NodeTokenCompleted, NodeTokenExecuted and
ProcessCompleted etc.
My use case is EndNode should not exhibit the same behaviors as a
regular Node in terms of Node lifecycle. To avoid these extraneous
triggers I had to work around it. I wonder should Node has a special
flag to request it not to fire all the events?
Regards
chung-onn