
Jeffrey Holle wrote:
Andreas Huber wrote:
3. What is a custom-reaction? Basically they allow you to do things for which the predefined reactions are too inflexible.
Just what are the "predefined reactions"?
I want to execute application specific code when a transition occurs. Does this mean I must use "custom-reactions"?
I can see that transaction template can have applications specific actions attached, but the documentation is limited and no examples are present in my present boost download. The documentation says a transaction template can take 4 template parameters. The last two are: TransitionContext pTransitionAction If someone could supply me with an example use of these parameters, I could probably write my code. Note that in my case, the method I want to execute an transition is in my state class.