<HTML><HEAD></HEAD><BODY><P>Hi,</P><P></P><P>yesterday I had a presentation on the State Pattern Actor at the German VIP Days in Fuerstenfeldbruck.</P><P></P><P>You can find the slides and (evolving) sample code <A _jive_internal="true" href="/people/Oli_Wachno/blog/2016/10/24/vip-days-2016-state-pattern-actor">here</A></P><P>Hope you like it, have a good weekend</P><P></P><P>Oli</P><P></P><P>P.S. comments are very welcome</P></BODY></HTML>
Edit 04.July 2018:
I have just realized, that the link is finally dead since the switch of the community plattform along with my blog
Instead I have attached the original code and the presentation directly.
Sorry for the incovenience
By Now (2016-10-28 - 14:58 MESZ the linked item does not exist :-((
Thanks for the hint. Working now
Unfortunatelly, it's not working now... Is it possible, please, to update the link?
Thanks a lot,
Sincerely, kosist90
Thanks for the shout-out Oli; it's good to see state pattern actors getting more attention.
I do want to point out that it is possible to transfer data between states that is not contained within the context actor, though I'll concede that it can be tricky. The states can have their own Substitute Actor overrides, and with a little work, you can get where you need to go. The one time I needed to do it, it wound up looking something like double dispatch. I wasn't entirely happy with it, but it was functional.
I'd also note that your states can have child states, which means that a family of states can share an override of Substitute Actor.
It'll be interesting to see how this evolves over time.