开发者

Get to the handled event instance in HandleExternalEventActivity

开发者 https://www.devze.com 2022-12-17 15:24 出处:网络
I have state machine, some state owns by HandleExternalEventActivity. It accepts some event with simple string flag. Basing on this string I need dispatch which next state must be activated. Most obvi

I have state machine, some state owns by HandleExternalEventActivity. It accepts some event with simple string flag. Basing on this string I need dispatch which next state must be activated. Most obvious is use IfElseActivity, but I have no开发者_JAVA技巧 idea how to get to this string from IfElse. Most simplest way to place property on entire state-machine, but I would like avoid on some reason.


Create a subclass of the HandleExternalEventActivity and add a dependency property to that. There is a command line utility WCA.exe which will create preconfigured activities base on your external data contracts and do exactly that.

0

精彩评论

暂无评论...
验证码 换一张
取 消