Windows Workflow Foundation
Introduction
Windows Workflow Foundation (WF) is the programming model, engine and tools for quickly building workflow enabled applications on Windows.</note>
<note>What is a Workflow?
A workflow is a model of a human or system process which is defined as a map of activities. An activity is a step in a workflow and is the unit of execution, re-use and composition for a workflow. A workflow is designed by laying out activities and is compiled to a .NET assembly that is executed on the workflow runtime and the Common Language Runtime (CLR).
</note>
Upgrade a Class Library to Enable Worflows Activities
I tried to open the design surface for the activity. It said in part:The service 'System.Workflow.ComponentModel.Design.IIdentifierCreationService' must be installed for this operation to succeed. Ensure that this service is available.
The first entry that’s necessary belongs in the <PropertyGroup> and is:
<code><ProjectTypeGuids>{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids></code>
Basically, it’s saying that it’s a workflow project and it’s a C# project.
The second part is an import statement that just goes inside of the root <Project> node. It is:
<code><Import Project="$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets" /></code>
Adding these two entries to your project file makes the workflow extensions work in Visual Studio and can make your custom activity work – even when you started with a standard class library.
===== Ressources =====
* [[http://www.microsoft.com/downloads/details.aspx?familyid=2e575633-e357-4ee7-aaff-34138f00e830&displaylang=en|Hands On Lab]]
* [[http://msdn.microsoft.com/fr-fr/netframework/first-steps-with-wf.aspx|Guide du Débutant]]
* [[http://msdn.microsoft.com/fr-fr/netframework/aa663328.aspx|Windows Workflow Foundation MSDN]]
Commentaires
Enregistrer un commentaire