Workflow Foundation:如何获取 SequenceActivity 内部的 WorkflowInstance?
如何让 WorkflowInstance 执行 SequenceActivity(位于 Activity 内部)?
How can I get the WorkflowInstance executing a SequenceActivity (being inside of the Activity)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能做的最好的事情就是使用自定义 IWorkflowInstanceExtension 获取 WorkflowInstanceProxy。您将需要创建扩展来捕获实例,然后创建自定义活动以从扩展中提取实例代理。
类似于 http://blogs .msdn.com/b/tilovell/archive/2010/02/26/getting-your-workflow-instance.aspx
The best you can do is to get a WorkflowInstanceProxy using a custom IWorkflowInstanceExtension. You will need to create the extension to capture the instance and then create a custom activity to pull the instance proxy from the extension.
Something like http://blogs.msdn.com/b/tilovell/archive/2010/02/26/getting-your-workflow-instance.aspx