如何在共享点顺序工作流程的复制器活动中加载外部数据?

发布于 2024-07-29 00:39:06 字数 272 浏览 1 评论 0原文

我正在尝试在共享点上创建一个非常简单的顺序工作流程。 此工作流程的目标是对添加的项目执行重复的任务创建。 我的问题是要生成的任务数量存储在共享点列表中,因此在复制器活动运行之前我必须检查此列表并获取要依次创建的任务数量。 当我执行此操作时,工作流仅创建一项任务,并且工作流状态为“已完成”。 但是,如果我将任务数量设置为常量,则工作流程可以正常工作。

问题是,为什么如果我从外部源获取任务数量,工作流程就不起作用,但如果我放置恒定数量的任务,工作流程就可以正常工作?

谢谢。

I'm trying to make a really simple sequential workflow on sharepoint. The target of this worflow is doing a repetitive task creation over an item added. My problem is that the number of task tobe generated are stored in a sharepoint list so, before the replicator activity runs I have to check this list and get the number of task to be created sequently. When I do this operation the workflow only creates one task and the workflow status is "finished". However, If I set the number of task with a constant the workflow works fine.

The question is why if I get the number of task from an external source the workflow doesn't work, but if I put a constant number of tasks the workflow works well??

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

划一舟意中人 2024-08-05 00:39:06

首次激活工作流时,查询此列表并获取要创建的任务(以及您可能需要的任何其他信息)并将其放入全局 IList 中。

在工作流设计中,只需将全局 IList 绑定到 Replicator 活动的 InitialChildData 属性即可。

When the workflow is first activated, query this list and get the tasks to be created (along with any other info you might need) and place it into a global IList.

In your workflow design, simply bind the global IList to the InitialChildData property of the Replicator activity.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文