Click here to Skip to main content
15,892,809 members
Articles / Programming Languages / C#

WF 4 Persistence, Tracking, and Bookmarks: A Practical Approach

Rate me:
Please Sign up or sign in to vote.
4.73/5 (31 votes)
21 Aug 2010CPOL17 min read 142.4K   8.5K   62  
Shows practical examples about WF 4 Persistence, Tracking, and Bookmarks.
<Activity mc:Ignorable="sap" x:Class="TestWF2.Workflow1" sap:VirtualizedContainerService.HintSize="317,609" mva:VisualBasic.Settings="Assembly references and imported namespaces for internal implementation" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:local="clr-namespace:TestWF2" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://tempuri.org/" xmlns:p1="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:s4="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:ssa="clr-namespace:System.ServiceModel.Activities;assembly=System.ServiceModel.Activities" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Sequence sad:XamlDebuggerXmlReader.FileName="c:\users\mohamad\documents\visual studio 2010\Projects\TestWF2\TestWF2\Workflow1.xaml" sap:VirtualizedContainerService.HintSize="277,569">
    <Sequence.Variables>
      <Variable x:TypeArguments="p1:CorrelationHandle" Name="__handle1" />
      <Variable x:TypeArguments="s:Guid" Name="instanceid" />
    </Sequence.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <p1:Receive x:Name="__ReferenceID0" CanCreateInstance="True" sap:VirtualizedContainerService.HintSize="255,90" OperationName="Operation1" ServiceContractName="p:IService">
      <p1:Receive.CorrelationInitializers>
        <p1:RequestReplyCorrelationInitializer CorrelationHandle="[__handle1]" />
      </p1:Receive.CorrelationInitializers>
    </p1:Receive>
    <local:CodeActivity1 sap:VirtualizedContainerService.HintSize="255,22" WFInstanceId="[instanceid]" />
    <p1:SendReply Request="{x:Reference __ReferenceID0}" DisplayName="SendReplyToReceive" sap:VirtualizedContainerService.HintSize="255,90">
      <p1:SendMessageContent DeclaredMessageType="s:Guid">
        <InArgument x:TypeArguments="s:Guid">[instanceid]</InArgument>
      </p1:SendMessageContent>
    </p1:SendReply>
    <Delay Duration="[New TimeSpan(0, 0, 60)]" sap:VirtualizedContainerService.HintSize="255,22" />
    <WriteLine sap:VirtualizedContainerService.HintSize="255,61" Text="Workflow Ended" />
  </Sequence>
</Activity>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Lebanon Lebanon

Comments and Discussions