Overblog
Editer l'article Suivre ce blog Administration + Créer mon blog

Workflow en xaml

4 Juin 2007 , Rédigé par Hugues MEUNIER Publié dans #.NET

WF (Windows Workflow Fundation) permet de créer des workflows déclaratifs.

Les activités sont décrites dans des fichiers xaml.

En xaml, un workflow pure xaml s'écrit :

<SequentialWorkflowActivity
   
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"
   
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
   >

   <CodeActivity ExecuteCode="Bonjour" />
   
   <
x:Code>
      <![CDATA[
      
      private void Bonjour(object sender, EventArgs e)
      {
         Console.WriteLine("Je suis dans le workflow!");        
      }                  
      
]]>
   </
x:Code>


</
SequentialWorkflowActivity>

Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article