<Activity mc:Ignorable="sap sap2010" x:Class="Main" mva:VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="654,696" sap2010:WorkflowViewState.IdRef="ActivityBuilder_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:maes="clr-namespace:Microsoft.Activities.Extensions.Statements;assembly=Microsoft.Activities.Extensions" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://schemas.microsoft.com/workflow/2012/07/xaml/activities" 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:snm="clr-namespace:System.Net.Mail;assembly=System" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:upaf="clr-namespace:UiPath.Persistence.Activities.FormTask;assembly=UiPath.Persistence.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <scg:List x:TypeArguments="x:String" Capacity="22">
      <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>Microsoft.VisualBasic</x:String>
      <x:String>Microsoft.VisualBasic.Activities</x:String>
      <x:String>System</x:String>
      <x:String>System.Collections</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Diagnostics</x:String>
      <x:String>System.Drawing</x:String>
      <x:String>System.IO</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Net.Mail</x:String>
      <x:String>System.Xml</x:String>
      <x:String>System.Xml.Linq</x:String>
      <x:String>UiPath.Core</x:String>
      <x:String>UiPath.Core.Activities</x:String>
      <x:String>System.Windows.Markup</x:String>
      <x:String>UiPath.Persistence.Activities.FormTask</x:String>
    </scg:List>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <scg:List x:TypeArguments="AssemblyReference" Capacity="18">
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>WindowsBase</AssemblyReference>
      <AssemblyReference>PresentationCore</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>UiPath.System.Activities</AssemblyReference>
      <AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ValueTuple</AssemblyReference>
      <AssemblyReference>UiPath.Persistence.Activities</AssemblyReference>
    </scg:List>
  </TextExpression.ReferencesForImplementation>
  <Flowchart sap:VirtualizedContainerService.HintSize="634,636" sap2010:WorkflowViewState.IdRef="Flowchart_1">
    <Flowchart.Variables>
      <Variable x:TypeArguments="scg:Dictionary(x:String, x:String)" Default="[New Dictionary(of String, string)]" Name="emailDictionary" />
      <Variable x:TypeArguments="x:String" Name="email" />
      <Variable x:TypeArguments="scg:Dictionary(x:String, x:Int32)" Default="[New Dictionary(of String, Int32)]" Name="PriceTable" />
    </Flowchart.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
        <av:Point x:Key="ShapeLocation">270,2.5</av:Point>
        <av:Size x:Key="ShapeSize">60,75</av:Size>
        <av:PointCollection x:Key="ConnectorLocation">300,77.7 300,105.6</av:PointCollection>
      </scg:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <Flowchart.StartNode>
      <x:Reference>__ReferenceID9</x:Reference>
    </Flowchart.StartNode>
    <FlowStep x:Name="__ReferenceID9">
      <sap:WorkflowViewStateService.ViewState>
        <scg:Dictionary x:TypeArguments="x:String, x:Object">
          <av:Point x:Key="ShapeLocation">200,105.6</av:Point>
          <av:Size x:Key="ShapeSize">200,67</av:Size>
          <av:PointCollection x:Key="ConnectorLocation">300,172.6 300,203.8</av:PointCollection>
        </scg:Dictionary>
      </sap:WorkflowViewStateService.ViewState>
      <Sequence DisplayName="Read Quotation Emails" sap:VirtualizedContainerService.HintSize="200,67" sap2010:WorkflowViewState.IdRef="Sequence_1">
        <Sequence.Variables>
          <Variable x:TypeArguments="scg:List(snm:MailMessage)" Name="emailList" />
        </Sequence.Variables>
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <ui:GetOutlookMailMessages Account="{x:Null}" Filter="{x:Null}" TimeoutMS="{x:Null}" DisplayName="Get Outlook Mail Messages" GetAttachements="False" sap:VirtualizedContainerService.HintSize="669,22" sap2010:WorkflowViewState.IdRef="GetOutlookMailMessages_1" MailFolder="Inbox\报价单请求" MarkAsRead="False" Messages="[emailList]" OnlyUnreadMessages="False" Top="5" />
        <ui:ForEach x:TypeArguments="snm:MailMessage" CurrentIndex="{x:Null}" DisplayName="For Each" sap:VirtualizedContainerService.HintSize="669,805.5" sap2010:WorkflowViewState.IdRef="ForEach`1_1" Values="[emailList]">
          <ui:ForEach.Body>
            <ActivityAction x:TypeArguments="snm:MailMessage">
              <ActivityAction.Argument>
                <DelegateInArgument x:TypeArguments="snm:MailMessage" Name="email" />
              </ActivityAction.Argument>
              <Sequence DisplayName="Body" sap:VirtualizedContainerService.HintSize="633,671" sap2010:WorkflowViewState.IdRef="Sequence_2">
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <If Condition="[email.Subject.Contains(&quot;Request For Quotation&quot;)]" sap:VirtualizedContainerService.HintSize="591,579" sap2010:WorkflowViewState.IdRef="If_1">
                  <If.Then>
                    <Sequence sap:VirtualizedContainerService.HintSize="444,430" sap2010:WorkflowViewState.IdRef="Sequence_8">
                      <Sequence.Variables>
                        <Variable x:TypeArguments="ui:GenericValue" Name="emailBody" />
                        <Variable x:TypeArguments="ui:GenericValue" Name="emailSub" />
                      </Sequence.Variables>
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                      <Assign sap:VirtualizedContainerService.HintSize="402,60" sap2010:WorkflowViewState.IdRef="Assign_14">
                        <Assign.To>
                          <OutArgument x:TypeArguments="ui:GenericValue">[emailBody]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="ui:GenericValue">[email.Body]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="402,60" sap2010:WorkflowViewState.IdRef="Assign_15">
                        <Assign.To>
                          <OutArgument x:TypeArguments="ui:GenericValue">[emailSub]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="ui:GenericValue">[email.Subject]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <maes:AddToDictionary x:TypeArguments="x:String, x:String" Dictionary="[emailDictionary]" DisplayName="Add to dictionary" sap:VirtualizedContainerService.HintSize="402,138" sap2010:WorkflowViewState.IdRef="AddToDictionary`2_5" Key="[emailSub]" Value="[emailBody]" />
                    </Sequence>
                  </If.Then>
                </If>
              </Sequence>
            </ActivityAction>
          </ui:ForEach.Body>
        </ui:ForEach>
      </Sequence>
      <FlowStep.Next>
        <FlowStep x:Name="__ReferenceID8">
          <sap:WorkflowViewStateService.ViewState>
            <scg:Dictionary x:TypeArguments="x:String, x:Object">
              <av:Point x:Key="ShapeLocation">200,203.8</av:Point>
              <av:Size x:Key="ShapeSize">200,51.5</av:Size>
            </scg:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <ParallelForEach x:TypeArguments="scg:KeyValuePair(x:String, x:String)" DisplayName="Parallel For Each - Process each email parallely" sap:VirtualizedContainerService.HintSize="726,1230.5" sap2010:WorkflowViewState.IdRef="ParallelForEach`1_1" Values="[emailDictionary]">
            <ActivityAction x:TypeArguments="scg:KeyValuePair(x:String, x:String)">
              <ActivityAction.Argument>
                <DelegateInArgument x:TypeArguments="scg:KeyValuePair(x:String, x:String)" Name="itemDict" />
              </ActivityAction.Argument>
              <Sequence sap:VirtualizedContainerService.HintSize="676,1082" sap2010:WorkflowViewState.IdRef="Sequence_7">
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <Assign sap:VirtualizedContainerService.HintSize="634,60" sap2010:WorkflowViewState.IdRef="Assign_1">
                  <Assign.To>
                    <OutArgument x:TypeArguments="x:String">[email]</OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="x:String">[itemDict.Value]</InArgument>
                  </Assign.Value>
                </Assign>
                <Flowchart sap:VirtualizedContainerService.HintSize="634,890" sap2010:WorkflowViewState.IdRef="Flowchart_2">
                  <Flowchart.Variables>
                    <Variable x:TypeArguments="x:String" Name="taskAct" />
                    <Variable x:TypeArguments="x:String" Name="Item" />
                    <Variable x:TypeArguments="ui:GenericValue" Name="customerName" />
                    <Variable x:TypeArguments="x:String" Name="tempCompPrice" />
                    <Variable x:TypeArguments="x:String" Name="tempQty" />
                    <Variable x:TypeArguments="x:String" Name="tempItem" />
                    <Variable x:TypeArguments="x:String" Name="tempCustomerName" />
                    <Variable x:TypeArguments="ui:GenericValue" Name="Qty" />
                    <Variable x:TypeArguments="ui:GenericValue" Name="compPrice" />
                    <Variable x:TypeArguments="x:Int32" Name="calculatedTotal" />
                    <Variable x:TypeArguments="upaf:TaskData" Name="taskObj" />
                  </Flowchart.Variables>
                  <sap:WorkflowViewStateService.ViewState>
                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                      <x:Boolean x:Key="IsPinned">False</x:Boolean>
                      <av:Point x:Key="ShapeLocation">70,0</av:Point>
                      <av:Size x:Key="ShapeSize">60,75</av:Size>
                      <x:Double x:Key="Height">854</x:Double>
                      <av:PointCollection x:Key="ConnectorLocation">100,75.2 100,115.6</av:PointCollection>
                    </scg:Dictionary>
                  </sap:WorkflowViewStateService.ViewState>
                  <Flowchart.StartNode>
                    <x:Reference>__ReferenceID7</x:Reference>
                  </Flowchart.StartNode>
                  <FlowDecision x:Name="__ReferenceID1" Condition="[calculatedTotal&lt;cint(compPrice)]" DisplayName="Quotation Price&lt;Competition Price" sap:VirtualizedContainerService.HintSize="160,87" sap2010:WorkflowViewState.IdRef="FlowDecision_1">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        <av:Point x:Key="ShapeLocation">170,306.4</av:Point>
                        <av:Size x:Key="ShapeSize">160,87</av:Size>
                        <av:PointCollection x:Key="TrueConnector">170,350 100,350 100,564.02</av:PointCollection>
                        <av:PointCollection x:Key="FalseConnector">330,350 490,350 490,413.8</av:PointCollection>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <FlowDecision.True>
                      <FlowStep x:Name="__ReferenceID4">
                        <sap:WorkflowViewStateService.ViewState>
                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                            <av:Point x:Key="ShapeLocation">0,564.02</av:Point>
                            <av:Size x:Key="ShapeSize">200,51.5</av:Size>
                            <av:PointCollection x:Key="ConnectorLocation">100,616.42 100,740 190,740</av:PointCollection>
                          </scg:Dictionary>
                        </sap:WorkflowViewStateService.ViewState>
                        <ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="200,51.5" sap2010:WorkflowViewState.IdRef="LogMessage_1" Level="Info" Message="[&quot;Quoted price lower. Quoted -&quot;+calculatedTotal.ToString+&quot;||Comp Price -&quot;+compPrice]">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                        </ui:LogMessage>
                        <FlowStep.Next>
                          <FlowStep x:Name="__ReferenceID0">
                            <sap:WorkflowViewStateService.ViewState>
                              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                <av:Point x:Key="ShapeLocation">190,705.6</av:Point>
                                <av:Size x:Key="ShapeSize">200,70</av:Size>
                                <av:PointCollection x:Key="ConnectorLocation">280,854 280,884 673.968219514214,884 673.968219514214,208.636496382549 327.5,208.636496382549 327.5,226.4</av:PointCollection>
                              </scg:Dictionary>
                            </sap:WorkflowViewStateService.ViewState>
                            <Sequence DisplayName="Generate Quotation" sap:VirtualizedContainerService.HintSize="200,70" sap2010:WorkflowViewState.IdRef="Sequence_5">
                              <sap:WorkflowViewStateService.ViewState>
                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                  <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                </scg:Dictionary>
                              </sap:WorkflowViewStateService.ViewState>
                              <ui:InvokeWorkflowFile ContinueOnError="{x:Null}" DisplayName="Invoke GenerateQuote workflow" sap:VirtualizedContainerService.HintSize="334,87" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_1" UnSafe="False" WorkflowFileName="GenerateQuote.xaml">
                                <ui:InvokeWorkflowFile.Arguments>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_fileName">Output</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_CustomerName">[customerName]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_Item">[Item]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_ItemQty">[Qty]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_ItemDesc" />
                                  <InArgument x:TypeArguments="x:String" x:Key="In_ItemPrice">[PriceTable(Item).ToString]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_Discount">[(cint(compPrice)-cint(calculatedTotal)).ToString]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_QuoteTemplate">Data\Quotation Template.xlsx</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_CalculatedPrice">[calculatedTotal.ToString]</InArgument>
                                </ui:InvokeWorkflowFile.Arguments>
                              </ui:InvokeWorkflowFile>
                              <ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,95" sap2010:WorkflowViewState.IdRef="LogMessage_2" Level="Info" Message="[&quot;Final Quoted Price : &quot;+calculatedTotal.ToString]" />
                            </Sequence>
                          </FlowStep>
                        </FlowStep.Next>
                      </FlowStep>
                    </FlowDecision.True>
                    <FlowDecision.False>
                      <FlowStep x:Name="__ReferenceID5">
                        <sap:WorkflowViewStateService.ViewState>
                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                            <av:Point x:Key="ShapeLocation">390,413.8</av:Point>
                            <av:Size x:Key="ShapeSize">200,51.5</av:Size>
                            <av:PointCollection x:Key="ConnectorLocation">490,466.2 490,505.6</av:PointCollection>
                          </scg:Dictionary>
                        </sap:WorkflowViewStateService.ViewState>
                        <ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="200,51.5" sap2010:WorkflowViewState.IdRef="LogMessage_3" Level="Info" Message="[&quot;Quoted price Higher. Quoted -&quot;+calculatedTotal.ToString+&quot;||Comp Price -&quot;+compPrice]">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                        </ui:LogMessage>
                        <FlowStep.Next>
                          <FlowStep x:Name="__ReferenceID3">
                            <sap:WorkflowViewStateService.ViewState>
                              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                <av:Point x:Key="ShapeLocation">390,505.6</av:Point>
                                <av:Size x:Key="ShapeSize">200,67</av:Size>
                                <av:PointCollection x:Key="ConnectorLocation">490,572.6 490,610</av:PointCollection>
                              </scg:Dictionary>
                            </sap:WorkflowViewStateService.ViewState>
                            <Sequence DisplayName="Create Human Task for Approval" sap:VirtualizedContainerService.HintSize="376,467.5" sap2010:WorkflowViewState.IdRef="Sequence_6">
                              <sap:WorkflowViewStateService.ViewState>
                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                  <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                </scg:Dictionary>
                              </sap:WorkflowViewStateService.ViewState>
                              <upaf:CreateFormTask TaskCatalog="{x:Null}" TimeoutMs="{x:Null}" DisplayName="Create Form Task" FormLayout="%[{&quot;label&quot;:&quot;HTML&quot;,&quot;tag&quot;:&quot;img&quot;,&quot;className&quot;:&quot;&quot;,&quot;attrs&quot;:[{&quot;attr&quot;:&quot;src&quot;,&quot;value&quot;:&quot;data:image/jpeg;base64, &quot;},{&quot;attr&quot;:&quot;height&quot;,&quot;value&quot;:&quot;100&quot;},{&quot;attr&quot;:&quot;width&quot;,&quot;value&quot;:&quot;150&quot;}],&quot;content&quot;:&quot;&lt;div class=\&quot;well\&quot;&gt;Content&lt;/div&gt;&quot;,&quot;refreshOnChange&quot;:false,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;htmlelement&quot;,&quot;input&quot;:false,&quot;key&quot;:&quot;html&quot;,&quot;tableView&quot;:true,&quot;validate&quot;:{&quot;customMessage&quot;:&quot;&quot;},&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;reorder&quot;:false},{&quot;numRows&quot;:5,&quot;numCols&quot;:2,&quot;type&quot;:&quot;table&quot;,&quot;input&quot;:false,&quot;key&quot;:&quot;table2&quot;,&quot;tableView&quot;:true,&quot;label&quot;:&quot;&quot;,&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;rows&quot;:[[{&quot;components&quot;:[{&quot;label&quot;:&quot;Requestor Company Name&quot;,&quot;showWordCount&quot;:false,&quot;showCharCount&quot;:false,&quot;disabled&quot;:true,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_CompanyName&quot;,&quot;input&quot;:true,&quot;tableView&quot;:true,&quot;defaultValue&quot;:&quot;&quot;,&quot;validate&quot;:{&quot;customMessage&quot;:&quot;&quot;},&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;reorder&quot;:false}]},{&quot;components&quot;:[]}],[{&quot;components&quot;:[{&quot;label&quot;:&quot;Item&quot;,&quot;showWordCount&quot;:false,&quot;showCharCount&quot;:false,&quot;disabled&quot;:true,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_Item&quot;,&quot;input&quot;:true,&quot;tableView&quot;:true,&quot;defaultValue&quot;:&quot;&quot;,&quot;validate&quot;:{&quot;customMessage&quot;:&quot;&quot;},&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;reorder&quot;:false}]},{&quot;components&quot;:[]}],[{&quot;components&quot;:[{&quot;label&quot;:&quot;Requested Quantity&quot;,&quot;showWordCount&quot;:false,&quot;showCharCount&quot;:false,&quot;disabled&quot;:true,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_Qty&quot;,&quot;input&quot;:true,&quot;tableView&quot;:true,&quot;defaultValue&quot;:&quot;&quot;,&quot;validate&quot;:{&quot;customMessage&quot;:&quot;&quot;},&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;reorder&quot;:false}]},{&quot;components&quot;:[]}],[{&quot;components&quot;:[{&quot;label&quot;:&quot;Price Quoted By Competition&quot;,&quot;showWordCount&quot;:false,&quot;showCharCount&quot;:false,&quot;disabled&quot;:true,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_CompPrice&quot;,&quot;input&quot;:true,&quot;tableView&quot;:true,&quot;defaultValue&quot;:&quot;&quot;,&quot;validate&quot;:{&quot;customMessage&quot;:&quot;&quot;},&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;reorder&quot;:false}]},{&quot;components&quot;:[]}],[{&quot;components&quot;:[{&quot;label&quot;:&quot;Calculated Amount (Item Price * Quantity)&quot;,&quot;alwaysEnabled&quot;:true,&quot;type&quot;:&quot;number&quot;,&quot;input&quot;:true,&quot;key&quot;:&quot;In_CalculatedAmt&quot;,&quot;tableView&quot;:true,&quot;validate&quot;:{&quot;customMessage&quot;:&quot;&quot;},&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;delimiter&quot;:false,&quot;requireDecimal&quot;:false,&quot;reorder&quot;:false}]},{&quot;components&quot;:[]}]],&quot;header&quot;:[],&quot;reorder&quot;:false},{&quot;numRows&quot;:1,&quot;numCols&quot;:7,&quot;type&quot;:&quot;table&quot;,&quot;mask&quot;:false,&quot;customClass&quot;:&quot;uipath-button-container&quot;,&quot;tableView&quot;:true,&quot;alwaysEnabled&quot;:false,&quot;input&quot;:false,&quot;key&quot;:&quot;key&quot;,&quot;label&quot;:&quot;label&quot;,&quot;rows&quot;:[[{&quot;components&quot;:[{&quot;label&quot;:&quot;Approve&quot;,&quot;theme&quot;:&quot;primary&quot;,&quot;disableOnInvalid&quot;:true,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;button&quot;,&quot;key&quot;:&quot;submit&quot;,&quot;input&quot;:true,&quot;tableView&quot;:true,&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;showValidations&quot;:false,&quot;event&quot;:&quot;&quot;,&quot;url&quot;:&quot;&quot;,&quot;custom&quot;:&quot;&quot;,&quot;reorder&quot;:false}]},{&quot;components&quot;:[{&quot;label&quot;:&quot;Reject&quot;,&quot;theme&quot;:&quot;warning&quot;,&quot;alwaysEnabled&quot;:false,&quot;type&quot;:&quot;button&quot;,&quot;input&quot;:true,&quot;key&quot;:&quot;reject&quot;,&quot;tableView&quot;:true,&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;showValidations&quot;:false,&quot;event&quot;:&quot;&quot;,&quot;url&quot;:&quot;&quot;,&quot;custom&quot;:&quot;&quot;,&quot;reorder&quot;:false}]},{&quot;components&quot;:[]},{&quot;components&quot;:[]},{&quot;components&quot;:[]},{&quot;components&quot;:[]},{&quot;components&quot;:[]}]],&quot;header&quot;:[],&quot;customConditional&quot;:&quot;&quot;,&quot;logic&quot;:[],&quot;conditional&quot;:{&quot;show&quot;:&quot;&quot;,&quot;when&quot;:&quot;&quot;},&quot;reorder&quot;:false},{&quot;label&quot;:&quot;In_Item&quot;,&quot;disabled&quot;:true,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_Item&quot;},{&quot;label&quot;:&quot;In_Qty&quot;,&quot;disabled&quot;:true,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_Qty&quot;},{&quot;label&quot;:&quot;In_CalculatedAmt&quot;,&quot;disabled&quot;:false,&quot;type&quot;:&quot;number&quot;,&quot;input&quot;:true,&quot;key&quot;:&quot;In_CalculatedAmt&quot;},{&quot;label&quot;:&quot;In_CompPrice&quot;,&quot;disabled&quot;:true,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_CompPrice&quot;},{&quot;label&quot;:&quot;In_CompanyName&quot;,&quot;disabled&quot;:true,&quot;type&quot;:&quot;textfield&quot;,&quot;key&quot;:&quot;In_CompanyName&quot;}]" sap:VirtualizedContainerService.HintSize="334,375.5" sap2010:WorkflowViewState.IdRef="CreateFormTask_1" TaskOutput="[taskObj]" TaskPriority="Medium" TaskTitle="Approval for Quotation">
                                <upaf:CreateFormTask.FormData>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_Item">[Item]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_Qty">[Qty]</InArgument>
                                  <InOutArgument x:TypeArguments="x:Int32" x:Key="In_CalculatedAmt">[calculatedTotal]</InOutArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_CompPrice">[compPrice]</InArgument>
                                  <InArgument x:TypeArguments="x:String" x:Key="In_CompanyName">[customerName]</InArgument>
                                </upaf:CreateFormTask.FormData>
                              </upaf:CreateFormTask>
                            </Sequence>
                            <FlowStep.Next>
                              <FlowStep x:Name="__ReferenceID6">
                                <sap:WorkflowViewStateService.ViewState>
                                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                    <av:Point x:Key="ShapeLocation">390,610</av:Point>
                                    <av:Size x:Key="ShapeSize">200,61</av:Size>
                                    <av:PointCollection x:Key="ConnectorLocation">490,671 490,740.6 390,740.6</av:PointCollection>
                                  </scg:Dictionary>
                                </sap:WorkflowViewStateService.ViewState>
                                <upaf:WaitForTaskAndResume StatusMessage="{x:Null}" TimeoutMs="{x:Null}" WaitItemDataObject="{x:Null}" DisplayName="Wait for Task and Resume" sap:VirtualizedContainerService.HintSize="200,61" sap2010:WorkflowViewState.IdRef="WaitForTaskAndResume_1" TaskAction="[taskAct]" TaskInput="[taskObj]">
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                </upaf:WaitForTaskAndResume>
                                <FlowStep.Next>
                                  <x:Reference>__ReferenceID0</x:Reference>
                                </FlowStep.Next>
                              </FlowStep>
                            </FlowStep.Next>
                          </FlowStep>
                        </FlowStep.Next>
                      </FlowStep>
                    </FlowDecision.False>
                  </FlowDecision>
                  <FlowStep x:Name="__ReferenceID2">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <av:Point x:Key="ShapeLocation">0,225.6</av:Point>
                        <av:Size x:Key="ShapeSize">200,67</av:Size>
                        <av:PointCollection x:Key="ConnectorLocation">200,260 250,260 250,306.4</av:PointCollection>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <Sequence DisplayName="Calculate Quotation Price" sap:VirtualizedContainerService.HintSize="200,67" sap2010:WorkflowViewState.IdRef="Sequence_4">
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                      <p:AddToDictionary x:TypeArguments="x:String, x:Int32" Dictionary="[PriceTable]" DisplayName="Add to dictionary" sap:VirtualizedContainerService.HintSize="263,22" sap2010:WorkflowViewState.IdRef="AddToDictionary`2_2" Key="Laptop" Value="1200" />
                      <p:AddToDictionary x:TypeArguments="x:String, x:Int32" Dictionary="[PriceTable]" DisplayName="Add to dictionary" sap:VirtualizedContainerService.HintSize="263,22" sap2010:WorkflowViewState.IdRef="AddToDictionary`2_3" Key="Headset" Value="180" />
                      <p:AddToDictionary x:TypeArguments="x:String, x:Int32" Dictionary="[PriceTable]" DisplayName="Add to dictionary" sap:VirtualizedContainerService.HintSize="263,22" sap2010:WorkflowViewState.IdRef="AddToDictionary`2_4" Key="Dell-Mouse" Value="55" />
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_12">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:Int32">[calculatedTotal]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:Int32">[PriceTable(Item)*CInt(Qty)]</InArgument>
                        </Assign.Value>
                      </Assign>
                    </Sequence>
                    <FlowStep.Next>
                      <x:Reference>__ReferenceID1</x:Reference>
                    </FlowStep.Next>
                  </FlowStep>
                  <FlowStep x:Name="__ReferenceID7">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <av:Point x:Key="ShapeLocation">0,115.6</av:Point>
                        <av:Size x:Key="ShapeSize">200,67</av:Size>
                        <av:PointCollection x:Key="ConnectorLocation">100,182.6 100,225.6</av:PointCollection>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <Sequence DisplayName="Extract Item Details From Email Body" sap:VirtualizedContainerService.HintSize="200,67" sap2010:WorkflowViewState.IdRef="Sequence_3">
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_2">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[tempCustomerName]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[email.Substring(email.IndexOf("NAME &amp; ADDRESS OF FIRM : ")+"NAME &amp; ADDRESS OF FIRM : ".Length)]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_3">
                        <Assign.To>
                          <OutArgument x:TypeArguments="ui:GenericValue">[customerName]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="ui:GenericValue">[tempCustomerName.Substring(0,tempCustomerName.IndexOf("DATE")).Trim]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_4">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[tempItem]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[tempCustomerName.Substring(tempCustomerName.IndexOf("Items to be Supplied")+"Items to be Supplied".Length)]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_13">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[Item]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[tempItem.Substring(0,tempItem.IndexOf("Qty")).Trim]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_6">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[tempQty]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[tempItem.Substring(tempItem.IndexOf("Qty.")+4)]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_7">
                        <Assign.To>
                          <OutArgument x:TypeArguments="ui:GenericValue">[Qty]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="ui:GenericValue">[tempQty.Substring(0,tempQty.IndexOf("Description / Specifications of Goods")).Trim]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_11">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[tempCompPrice]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[tempQty.Substring(tempQty.IndexOf("Total Price Quoted by Competition: ")+"Total Price Quoted by Competition: ".Length)]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <Assign sap:VirtualizedContainerService.HintSize="263,61" sap2010:WorkflowViewState.IdRef="Assign_9">
                        <Assign.To>
                          <OutArgument x:TypeArguments="ui:GenericValue">[compPrice]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="ui:GenericValue">[tempCompPrice.Substring(0,tempCompPrice.IndexOf("Regards")).Replace("$","").Trim]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <WriteLine DisplayName="Write Line" sap:VirtualizedContainerService.HintSize="263,63" sap2010:WorkflowViewState.IdRef="WriteLine_2" Text="[&quot;requestor name - &quot;+customerName.Trim]" />
                      <WriteLine DisplayName="Write Line" sap:VirtualizedContainerService.HintSize="263,63" sap2010:WorkflowViewState.IdRef="WriteLine_3" Text="[&quot;Item name - &quot;+Item.Trim]" />
                      <WriteLine DisplayName="Write Line" sap:VirtualizedContainerService.HintSize="263,63" sap2010:WorkflowViewState.IdRef="WriteLine_4" Text="[&quot;Qty - &quot;+Qty.Trim]" />
                      <WriteLine DisplayName="Write Line" sap:VirtualizedContainerService.HintSize="263,63" sap2010:WorkflowViewState.IdRef="WriteLine_5" Text="[&quot;Comp - &quot;+compPrice.Trim]" />
                    </Sequence>
                    <FlowStep.Next>
                      <x:Reference>__ReferenceID2</x:Reference>
                    </FlowStep.Next>
                  </FlowStep>
                  <x:Reference>__ReferenceID0</x:Reference>
                  <x:Reference>__ReferenceID3</x:Reference>
                  <x:Reference>__ReferenceID4</x:Reference>
                  <x:Reference>__ReferenceID5</x:Reference>
                  <x:Reference>__ReferenceID6</x:Reference>
                </Flowchart>
              </Sequence>
            </ActivityAction>
          </ParallelForEach>
        </FlowStep>
      </FlowStep.Next>
    </FlowStep>
    <x:Reference>__ReferenceID8</x:Reference>
  </Flowchart>
</Activity>