我目前正在开发一个项目,我们希望将 WF4 状态机实现为工作流服务。由于我们过去使用过 WF 3.5,因此基本原理似乎很有意义。然而,我们遇到的一个问题是,我们希望能够在任何状态(或至少不止其中一个状态)创建工作流实例。在多个 Receive 活动上选择 CanCreateInstance 属性会引发异常。
我已经尝试了莫里斯的博客 但一直无法弄清楚如何将其应用到状态机。
I'm currently working on a project where we want to implement a WF4 state machine as a workflowservice. The fundamentals seem to make sense as we've used WF 3.5 in the past. However one issue we've come across is that we'd like to be able to create an instance of the workflow at any of states (or at least more than just one of them). Selecting the CanCreateInstance property on more than one Receive activity throws an exception.
I've played around with Maurice's suggestions on correlation from his blog but haven't been able to figure out how to apply that to a state machine.
发布评论
评论(1)
我们有一个示例可能会帮助您Windows Workflow Foundation (WF4) - Silverlight/状态机工作流服务
We have a sample that might help you Windows Workflow Foundation (WF4) - Silverlight / State Machine Workflow Service