在恢复之前阅读书签中的活动参数
我正在构建一个使用 Windows 工作流程的 asp.net mvc 应用程序,并且我需要根据自定义活动中的参数(由工作流程的创建者填写)恢复书签,不幸的是我找到的所有示例都得到了恢复书签后参数的值。
这可能吗?
(我尝试了一个扩展,但是虽然它非常有用,但我现在无法使用它,因为它在工作流程恢复时和下一个书签恢复之前运行)
提前致谢!
地理
I'm building an asp.net mvc app which uses Windows workflow and I'm in need to resume a bookmark depending on an argument inside my custom activity (filled by the creator of the workflow), unfortunately all samples I've found get the value of the Argument after the bookmark is resumed.
is this even possible?
(I tried an extension, but while it's super useful I can't use it now as it runs when the workflow is resumed and before the next bookmark is resumed)
Thanks in advance!
Geo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BookmarkCallback 委托在调用时会传入 < a href="http://msdn.microsoft.com/en-us/library/system.activities.nativeactivitycontext.aspx" rel="nofollow">NativeActivityContext。通过此上下文,您可以读取和写入活动上定义的任何 In/Out/InOutArguments。如果您在执行此委托期间不删除书签,工作流将保持空闲状态。
它的工作原理是:
The BookmarkCallback delegate, when called, passes in a NativeActivityContext. With this context you can read and write to any In/Out/InOutArguments defined on the Activity. If you do not remove the bookmark during the execution of this delegate, the workflow will remain idled.
How it works would be: