4

I've been perplexed lately working on a SharePoint state machine workflow. I was hoping to add some modification forms to the workflow so that I could reassign a task while in its state. Unfortunately, modification forms don't seem to be documented for use with state machine workflows (pretty straight forward for sequence workflows though) anywhere that I can find. The use of the ScopeHandlingActivity and its associated event handlers don't seem to mesh well with the state machine.

Has anyone gotten modification forms to work in a state machine workflow and how did you go about doing it?

Thanks!

4

2 回答 2

1

您为什么不直接修改任务表单并通过重新分配任务的可能性来扩展它?

于 2013-01-10T13:17:46.860 回答
0

首先,我知道这是一个超级旧的线程,但由于它在搜索引擎结果中的位置很高,我想我会把解决方案放在这里。

您需要做的就是使用您的修改 GUID:

  1. 在工作流的初始状态中添加 EnableWorkflowModification 活动
  2. 将 EventDriven 活动添加到 WORKFLOW 范围。这是设计模式中最外层的边框
  3. 在该 EventDriven 活动中添加 OnWorkflowModification 活动

补充说明:

  • 标签中的 GUID 必须小写
  • 对将所有者设置为工作流本身的修改活动使用单独的令牌,因此它始终在范围内

希望这个答案对将来的某人仍然有用!

于 2017-10-25T20:59:25.007 回答