Sharepoint 工作流程与 Windows 工作流程

发布于 2024-08-07 19:27:33 字数 68 浏览 2 评论 0原文

我们正在实施 sharepoint 应用程序,我们想了解 SharePoint 工作流与 Windows 工作流的优缺点。

We are in the process of implementing the sharepoint application, we would like to know the the pros and cons of SharePoint workflow versus Windows workflow.

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

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

发布评论

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

评论(6

在你怀里撒娇 2024-08-14 19:27:33

SharePoint 中的工作流是使用 Windows Workflow Foundation 实现的,因此它们并没有那么不同,但有关该实现的一些事项仍然需要注意。

SharePoint 是一个 Windows 工作流主机,因此您不必实现自己的主机,如果您同意 SharePoint 团队做出的决定,那就没问题:

  • 工作流实例保留在内容数据库中
  • 通过 SharePoint 任务与用户通信
  • 每个工作流实例与列表/库项目绑定
  • 未实施跟踪

如果这些选择符合您的喜好,那么请务必使用 SharePoint 工作流。

如果没有,则实施您自己的主机并做出您自己的决定。

Workflows in SharePoint are implemented using the Windows Workflow Foundation, so they are not that different, but there still are some things to be aware of regarding that implementation.

SharePoint is a Windows Workflow host, so you don't have to implement your own host which is fine if you agree with the decisions made by the SharePoint team:

  • Workflow instances are persisted in the content database
  • Communication with the user is through SharePoint tasks
  • Every workflow instance is tied to a list/library item
  • Tracking is not implemented

If these choices are to your liking then by all means use the SharePoint workflows.

If not then implement your own host and make your own decisions.

云雾 2024-08-14 19:27:33

它们是同一件事。当前的 Windows 工作流引擎是为 SharePoint 创建的。

现在应该注意的是,工作流引擎将随着 .Net 4.0 的发布而进行彻底修改。我不知道具体细节,但我听说差异很大。我假设这将在 Sharepoint 2010 中使用,但我没有任何相关信息。

这是 链接 描述 4.0 中的升级。

They are the same thing. The current Windows Workflow Engine was created for SharePoint.

Now it should be noted, that the Workflow engine is going to be overhauled with the release of .Net 4.0. I don't know the specifics, but I've been told the differences are significant. I woudld assume this is going to be used in Sharepoint 2010, but I don't have any information on that.

Here is a link describing the upgrade in 4.0.

萝莉病 2024-08-14 19:27:33

您尚未指定是在 SharePoint 中构建自定义编码应用程序还是通过浏览器配置开箱即用的解决方案。无论哪种方式,下面都是 SharePoint 中工作流的一些选项。

  1. 使用 SharePoint 中内置的本机工作流程,并且可以从任何列表轻松访问。它们非常基本(大多是只需一两个步骤的简单批准),但它们会让您非常快速地启动和运行,并且这一切都可以通过浏览器完成。
  2. 使用 SharePoint Designer 构建稍微复杂的工作流。这将使您能够访问条件逻辑(即根据列表值路由工作流)和无限的步骤,以及允许您在流程中引入更多逻辑的许多其他功能。缺点是您必须使用 SharePoint Designer,坦率地说,这可能是一个真正的痛苦。
  3. 在 WF 中自定义您的工作流程代码。 Windows 工作流是前两个选项的基础,这两个选项本质上是底层框架之上的抽象。此方法的主要区别在于您不限于浏览器或 SPD 所提供的功能。缺点是,这会成为一个更复杂的过程(尽管不可否认,工作流程可能会更复杂),并且您必须经历针对 SharePoint 进行编码、打包部署、发布等的繁琐工作。

我在易用性方面找到了最佳平衡开发和功能的重点是尝试按照我提供的顺序完成上面的列表,并且只有在您肯定无法实现当前点的要求时才前进到下一个选项。

You haven’t specified whether you’re building a custom coded application in SharePoint or configuring an out of the box solution via the browser. Either way, here are a few options for workflows in SharePoint.

  1. Use the native workflows built into SharePoint and readily accessible from any list. They’re very basic (mostly simple approvals with one or two steps), but they’ll get you up and running very quickly and it can all be done via the browser.
  2. Use SharePoint Designer to build slightly more complex workflows. This will give you access to conditional logic (i.e. route a workflow based on a list value) and unlimited steps and well as a number of other features that allow you to introduce more logic into the process. The downside is you have to work with SharePoint Designer which, to be frank, can be a real pain.
  3. Custom code your workflows in WF. Windows Workflow underlies the first two options which are essentially abstractions on top of the underlying framework. The main difference with this approach is that you’re not limited to the functions that the browser or SPD surface. The downside is that this becomes a more complex process (although admittedly the workflows will likely be more complex) and you have to go through the rigmarole of coding against SharePoint, packaging deployments, publishing, etc.

I find the best balance in terms of ease of development and functionality is to try and work through the above list in the order I provided them and only progress to the next option if you definitely can’t implement the requirement with the current point.

静待花开 2024-08-14 19:27:33

基本上是相同的技术。如果您知道其中一个,您可以轻松使用/切换到另一个。

当您将 SharePoint dll 添加到解决方案时,您将获得一些可以在工作流程中使用的特定 SharePoint“活动”。 (创建任务,...)

您的 SharePoint Server 将充当工作流的主机。

在 SharePoint 中部署工作流的最佳方法是使用 SharePoint 功能。这告诉 SharePoint 要使用哪些 dll(程序集)以及要显示哪些(输入)页面。

作为输入页面,您可以使用简单的 .net aspx 页面或 infopath 表单。两者都需要一些尝试和错误才能掌握窍门。

It's basically the same technology. If you know one you can easily work with / switch to the other.

When you add the SharePoint dll to your solution you get some specific SharePoint 'activities' that you can use in your workflow. (create task, ...)

Your SharePoint Server will act as a host for your workflows.

The best way to deploy a workflow in SharePoint is by using a SharePoint feature. This tells SharePoint what dll (assemblies) to use and which (input) pages to show.

As input pages you can use simple .net aspx pages or infopath forms. Both require some trial and error to get the hang of it.

稚气少女 2024-08-14 19:27:33

SharePoint 仅使用 Windows Workflow Foundation (WF) 作为其工作流引擎。 WF 本身只是一个通用的工作流引擎。

为了使用 WF,您必须实现一个主机进程来执行工作流,并对其进行配置,以便将实例保存到数据库等(现在大多数人使用 WCF 服务作为工作流主机,请参阅 此处此处)。

SharePoint 附带了所有已配置的内容,并实现了自己的工作流主机,因此您可以开始使用开箱即用的工作流。除此之外,它还附带自定义活动和其他特定于 SharePoint 的好东西。

SharePoint simply uses windows workflow Foundation (WF) as its workflow engine. WF in itself is just a generic workflow engine.

In order to use WF you must implement a host process for the execution of workflows, and configure it so it persists instances to database etc (these days most people use a WCF service as a workflow host, see here or here).

SharePoint comes with everything already configured and implements its own workflow host, so you can start using workflows out of the box. Apart from that, it comes with custom activities and other goodies specific to SharePoint.

伴我心暖 2024-08-14 19:27:33

正如其他答案中所述,它们是相同的,因为它们使用 Windows WOrkflow Foundation。话虽这么说,当谈到通过 SharePOint Designer 创建的工作流时,需要记住一件重要的事情:它们不是开箱即用的“可移植”的,这意味着您可以创建一个绑定到列表 a 的工作流,然后将列表另存为模板,然后基于该模板创建另一个列表,工作流程将无法工作(您已重新绑定它,因为它仍然引用原始列表的 id (guid)。

As stated in other answers, they are the same, as they use the Windows WOrkflow Foundation. That being said, there is a major thing to keep in mind when it comes to Workflows created through SharePOint Designer: They are not "portable" out of the box, meaning that you can create one bound to list a, then save the list as a template and then create another list based on that template, the workflow will NOT work (you have rebind it as it is still referencing the original list's id (guid).

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