Sharepoint StateMachine:处理对多个创建任务的多个响应
我为共享点创建了一个 StateMachine 工作流程,并且在一种状态下,我使用复制器创建多个任务。 创建的任务数量是可变的。
我需要为我创建的所有任务处理 OnTaskChanged 事件,这似乎是不可能的,因为一个事件处理程序只能与一个任务关联。
我可以使用有限数量的任务,这些任务可以由特定数量的处理程序创建和处理,但我认为这是最后的手段,或者创建顺序工作流作为最后的手段。
请告诉我这是否受支持或者是否有任何解决方法。
I created a StateMachine workflow for sharepoint and at one state, I create multiple tasks using a replicator. The number of tasks created is variable.
I need to handle the OnTaskChanged event for all the tasks I created which seems impossible as one event handler can only be associated with one task.
I can use a restrictive number of tasks which can be created and handled by a specific number of handlers but I am considering that as a last resort or create a sequential workflow as a last resort.
Please do let me know if this is even supported or if there are any workarounds.
Reference Link: http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a174ac5f-03ed-4e27-998b-bbdb7d01d09b/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您列出的原因,它不会起作用。 解决方法是将状态机工作流程重组为顺序工作流程(这可能不可能)或切换到项目事件接收器(这可能不适合您)。 我实际上已经在博客中讨论了这个主题:工作流程坚果卷。 1
可笑的是,我刚刚检查了您提供的 MSDN 论坛链接,果然,我在该线程中询问“所以,呃,我想我们都重写为顺序工作流程?” 该线程中也没有更好的答案:)
It won't work for the reasons you laid out. The workaround is to restructure your state machine workflow as a sequential workflow (which may not be possible) or to switch to item event receivers (which may not work for you). I've actually blogged about this topic: Workflow Nuttiness vol. 1
Hilariously, I just checked the MSDN forums link you provided, and sure enough, I'm in that thread, asking "so, uh, I guess we all rewrite to sequential workflows?" And there's no better answer in that thread either :)