<Activity mc:Ignorable="sap sap2010 sads" x:Class="RehostedWorkflowDesigner.Workflow" this:Workflow.path="C:\RPA\Attachments"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:iae="clr-namespace:Infor.Activities.Email;assembly=Infor.Activities.Email"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mewd="clr-namespace:Microsoft.Exchange.WebServices.Data;assembly=Microsoft.Exchange.WebServices"
 xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:this="clr-namespace:RehostedWorkflowDesigner"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="mailaccount" Type="InArgument(x:String)" />
    <x:Property Name="path" Type="InArgument(x:String)" />
    <x:Property Name="password" Type="InArgument(x:String)" />
  </x:Members>
  <mva:VisualBasic.Settings>
    <x:Null />
  </mva:VisualBasic.Settings>
  <sap2010:WorkflowViewState.IdRef>RehostedWorkflowDesigner.Workflow_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System.Activities</x:String>
      <x:String>System.Activities.Statements</x:String>
      <x:String>System.Activities.Expressions</x:String>
      <x:String>System.Activities.Validation</x:String>
      <x:String>System.Activities.XamlIntegration</x:String>
      <x:String>Infor.Activities.Email</x:String>
      <x:String>Microsoft.Exchange.WebServices.Data</x:String>
      <x:String>Microsoft.VisualBasic.Activities</x:String>
      <x:String>System.Activities.Debugger.Symbol</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Windows.Markup</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>Infor.Activities.Email</AssemblyReference>
      <AssemblyReference>Microsoft.Exchange.WebServices</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>WindowsBase</AssemblyReference>
      <AssemblyReference>PresentationCore</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="mewd:ExchangeService" Name="server" />
      <Variable x:TypeArguments="scg:List(mewd:EmailMessage)" Name="emails" />
      <Variable x:TypeArguments="scg:List(x:String)" Name="savedfiles" />
    </Sequence.Variables>
    <iae:EmailServer_Setup ErrorCode="{x:Null}" ContinueOnError="True" DisplayName="Email Server Setup" EmailAddress="[mailaccount]" sap2010:WorkflowViewState.IdRef="EmailServer_Setup_1" Password="password" Server="[server]" />
    <iae:Email_Read ErrorCode="{x:Null}" Num="{x:Null}" SenderFilter="{x:Null}" SubjectFilter="{x:Null}" ContinueOnError="True" DisplayName="Read Emails" Emails="[emails]" sap2010:WorkflowViewState.IdRef="Email_Read_1" IsRead="True" Server="[server]" />
    <ForEach x:TypeArguments="mewd:EmailMessage" DisplayName="ForEach&lt;EmailMessage&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_1" Values="[emails]">
      <ActivityAction x:TypeArguments="mewd:EmailMessage">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="mewd:EmailMessage" Name="item" />
        </ActivityAction.Argument>
        <iae:Attachment_Download ErrorCode="{x:Null}" OutputFile="{x:Null}" ContinueOnError="True" Directory="[path]" DisplayName="Save Attachments" Email="[item]" Files="[savedfiles]" sap2010:WorkflowViewState.IdRef="Attachment_Download_1" />
      </ActivityAction>
    </ForEach>
    <sads:DebugSymbol.Symbol>d0dDOlxVc2Vyc1xua29zdHVjaFxBcHBEYXRhXExvY2FsXEluZm9yUlBBXHNhdmUgYXR0YWNobWVudHNcTWFpblBhZ2UueGFtbA8BagF9AQI1A0YOAgEBOwU75AECARA8BTz+AQIBCz0FRA8CAQI7djuFAQIBEzvXATvhAQIBETyiATysAQIBDzzxATz7AQIBDTzjATzpAQIBDD2RAT2bAQIBCkIJQvQBAgEDQm5CdgIBCEKcAUKkAQIBBkKrAUK5AQIBBA==</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="EmailServer_Setup_1" sap:VirtualizedContainerService.HintSize="284.666666666667,22" />
      <sap2010:ViewStateData Id="Email_Read_1" sap:VirtualizedContainerService.HintSize="284.666666666667,22" />
      <sap2010:ViewStateData Id="Attachment_Download_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="ForEach`1_1" sap:VirtualizedContainerService.HintSize="284.666666666667,212.666666666667" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="306.666666666667,460.666666666667">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="RehostedWorkflowDesigner.Workflow_1" sap:VirtualizedContainerService.HintSize="346.666666666667,900.666666666667" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>