none
With which activity, arguments created in WF designer are attached

    Question

  • Hello,

    I created workflow in WF4.0 designer. I added two arguments using designer. XAML definition for workflow is like this:

    <p:Activity mc:Ignorable=""

    x:Class="TravelSearchApplication.Sequence1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities/design" xmlns:__Sequence1="clr-namespace:TravelSearchApplication;" xmlns:c="clr-namespace:CustomActivities;assembly=CustomActivities" xmlns:m="clr-namespace:MyCustomeActivity;assembly=MyCustomeActivity" xmlns:m1="clr-namespace:MyAnotherCustomeActivity;assembly=MyAnotherCustomeActivity" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

     

    <x:Members>
        <x:Property Name="TestArg1" Type="p:InArgument(x:String)" />
        <x:Property Name="TestArg2" Type="p:OutArgument(x:String)" />
    </x:Members>

     

    <p:Sequence sad:XamlDebuggerXmlReader.FileName="C:\Documents and Settings\vshah\Desktop\LAB001\Ex 1 - Authoring Workflow\end\TravelSearchApplication\TravelSearchApplication\Sequence1.xaml">


    <
    p:Sequence.Variables>

    <p:Variable x:TypeArguments="x:String" Name="Destination" />
    </
    p:Sequence.Variables>

     

    <p:WriteLine>[TestArg1]</p:WriteLine>

    <c:ReadLine Result="[Destination]" />

    <p:WriteLine>["Have fun in " + Destination + " press &lt;enter&gt; to exit"]</p:WriteLine>

    <c:ReadLine />

    </p:Sequence>

    </p:Activity>

    Now please consider <x:Members> tag (which is in bold and italic). It contains arguments I created in designer. Now question is that Sequence activity does not have Arguments collection as a property. So with which activity these arguments will be attached? What will be the scope of these arguments?

    Thanks and Regards,
    Vishal 

     

    Wednesday, July 01, 2009 2:09 PM

Answers

All replies