简体   繁体   English

Sharepoint 2010使用哪个WF版本?

[英]Which WF version to use with Sharepoint 2010?

We are planning to develop a system based on SharePoint 2010 (SP objects, workflows, UI etc.). 我们计划开发一个基于SharePoint 2010(SP对象,工作流,UI等)的系统。

The system will contain about a dozen workflows that interact with the SharePoint objects. 该系统将包含大约十二个与SharePoint对象进行交互的工作流。

From asking around I understood the following: 通过询问,我了解了以下内容:

  1. SharePoint 2010 workflows are .NET Framework 3.5 WF SharePoint 2010工作流是.NET Framework 3.5 WF
  2. There has been a big leap from the WF in 3.5 to the WF in 4.0 (it was basically rewritten). 从3.5的WF到4.0的WF有了很大的飞跃(基本上已被重写)。
  3. It's possible to write my workflows in 4.0, but they won't integrate as easily into SharePoint 2010. 可以在4.0中编写我的工作流,但是它们不会像在SharePoint 2010中那样容易地集成。
  4. I can write my workflows in 3.5 but if we will upgrade our SharePoint version we will have to rewrite our workflows. 我可以在3.5中编写我的工作流程,但是如果我们要升级SharePoint版本,则必须重写我们的工作流程。

You can only use .NET 3.5 workflows with SharePoint 2010. You are right, .NET 4.0 workflows won't integrate in SharePoint 2010. Don't worry about upgradation, even SharePoint product team would be aware of this scenario. 您只能将.NET 3.5工作流与SharePoint 2010一起使用。是的,.NET 4.0工作流不会集成到SharePoint 2010中。不必担心升级,即使SharePoint产品团队也会意识到这种情况。 They might either come up with an upgrade tool or a backward compatibility. 他们可能会提出升级工具或向后兼容。

Use .NET 3.5 - otherwise it won't work. 使用.NET 3.5-否则它将无法正常工作。

There are some people saying you should not develop State-Machine Workflows because they do not exist in .NET 4, it only has "Flowchart" workflows. 有人说您不应该开发状态机工作流,因为它们在.NET 4中不存在,因为它仅具有“流程图”工作流。 But a recent update to .NET 4 re-introduced State-Machine Workflows... 但是.NET 4的最新更新重新引入了状态机工作流...

You do not have any other choice right now but to use .NET 3.5. 您现在没有其他选择,只能使用.NET 3.5。 But you should keep in mind that once a new Sharepoint version comes out (SP 2010 is pretty new!), you might have to upgrade your workflows - but in the end you would have to upgrade all code to the new version. 但是,请记住,一旦出现新的Sharepoint版本(SP 2010相当新!),您可能必须升级工作流程-但最终您必须将所有代码升级到新版本。

WF in .NET 4 uses the Interop activity to leverage backwards-compatibility. .NET 4中的WF使用Interop活动来利用向后兼容。 You can safely execute your existing assets ( obviously with some limitations ) when the new workflow engine becomes available in SharePoint. 当新的工作流引擎在SharePoint中可用时,您可以安全地执行现有资产( 显然有一些限制 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM