Workflow View State Service
Workflow View State Service
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mva="clr-
namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:njl="clr-namespace:Newtonsoft.Json.Linq;assembly=Newtonsoft.Json"
xmlns:rac="clr-namespace:RCA.Activities.Core;assembly=RCA.Activities.Core"
xmlns:rae="clr-namespace:RCA.Activities.Excel;assembly=RCA.Activities.Excel"
xmlns:re="clr-namespace:RCA.Excel;assembly=RCA.Activities.Excel" xmlns:s="clr-
namespace:System;assembly=mscorlib"
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:sd="clr-
namespace:System.Data;assembly=System.Data"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="ArrConfig" Type="InOutArgument(njl:JToken)" />
<x:Property Name="ArrStage" Type="InArgument(njl:JToken)" />
<x:Property Name="VALIDATE_FILE_PATH" Type="InArgument(x:String)" />
<x:Property Name="ArrSheetInvData" Type="InOutArgument(sd:DataTable)" />
<x:Property Name="ArrSheetEmailData" Type="InOutArgument(sd:DataTable)" />
<x:Property Name="isRunManual" Type="InArgument(x:Boolean)" />
<x:Property Name="ArrSheetStage" Type="InOutArgument(sd:DataTable)" />
<x:Property Name="jwtToken" Type="InOutArgument(x:String)" />
<x:Property Name="DATE_TIME_RUN_BOT" Type="InArgument(s:DateTime)" />
<x:Property Name="ArrMess" Type="InArgument(njl:JToken)" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>1094,852</sap:VirtualizedContainerService
.HintSize>
<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>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>RCA.Activities.Core</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>System.Windows.Markup</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Microsoft.VisualBasic.CompilerServices</x:String>
<x:String>Newtonsoft.Json</x:String>
<x:String>System.Xml.Serialization</x:String>
<x:String>RCA.Activities.Browser</x:String>
<x:String>OpenQA.Selenium</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>RCA.Activities.Core</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>System.ServiceModel</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>RCA.Activities.NativeBrowser</AssemblyReference>
<AssemblyReference>RCA.Activities.Excel</AssemblyReference>
<AssemblyReference>RCA.Activities.Windows</AssemblyReference>
<AssemblyReference>RCA.Activities.Mail</AssemblyReference>
<AssemblyReference>RCA.Activities.Word</AssemblyReference>
<AssemblyReference>RCA.Activities.Browser</AssemblyReference>
<AssemblyReference>System.Runtime.WindowsRuntime</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>System.Data.Entity</AssemblyReference>
<AssemblyReference>RCA.Activities.PDFAdvance</AssemblyReference>
<AssemblyReference>RCA.Activities.IE</AssemblyReference>
<AssemblyReference>System.Collections.Immutable</AssemblyReference>
<AssemblyReference>WebDriver</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="ShouldCollapseAll">True</x:Boolean>
<x:Boolean x:Key="ShouldExpandAll">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Flowchart DisplayName="[180683166] Print BOL"
sap:VirtualizedContainerService.HintSize="1054,772">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<av:Point x:Key="ShapeLocation">740,2.5</av:Point>
<av:Size x:Key="ShapeSize">60,75</av:Size>
<av:PointCollection x:Key="ConnectorLocation">770,77.5
770,114.5</av:PointCollection>
<x:Double x:Key="Width">1040</x:Double>
<x:Double x:Key="Height">736.5</x:Double>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Flowchart.StartNode>
<x:Reference>__ReferenceID13</x:Reference>
</Flowchart.StartNode>
<FlowDecision x:Name="__ReferenceID5" Condition="[ArrSheetEmailData.Rows.Count
> 0 AND isRunManual = False]" DisplayName="[967172243] Flow Decision"
sap:VirtualizedContainerService.HintSize="142,87">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<av:Point x:Key="ShapeLocation">699,206.5</av:Point>
<av:Size x:Key="ShapeSize">142,87</av:Size>
<av:PointCollection x:Key="TrueConnector">699,250 578.263333333333,250
578.263333333333,306.5</av:PointCollection>
<av:PointCollection x:Key="FalseConnector">841,250 940,250
940,314.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<FlowDecision.True>
<FlowDecision x:Name="__ReferenceID8"
Condition="[ArrStage("COLLECT_YCMH_FILE").ToString = "OK"]"
DisplayName="[103665510] Flow Decision"
sap:VirtualizedContainerService.HintSize="142,87">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<av:Point x:Key="ShapeLocation">507.263333333333,306.5</av:Point>
<av:Size x:Key="ShapeSize">142,87</av:Size>
<av:PointCollection x:Key="TrueConnector">507.263333333333,350
440,350 440,436.5</av:PointCollection>
<av:PointCollection x:Key="FalseConnector">649.263333333333,350
760,350 760,434.02</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<FlowDecision.True>
<FlowDecision x:Name="__ReferenceID6"
Condition="[ArrStage("PRINT_BOL").ToString <> "OK"]"
DisplayName="[995587990] Flow Decision"
sap:VirtualizedContainerService.HintSize="142,87">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<av:Point x:Key="ShapeLocation">369,436.5</av:Point>
<av:Size x:Key="ShapeSize">142,87</av:Size>
<av:PointCollection x:Key="TrueConnector">369,480 240,480
240,546.5</av:PointCollection>
<av:PointCollection x:Key="FalseConnector">511,480 570,480
570,564.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<FlowDecision.True>
<FlowDecision x:Name="__ReferenceID10" Condition="[jwtToken
<> ""]" DisplayName="[163036142] Flow Decision"
sap:VirtualizedContainerService.HintSize="142,87">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<av:Point x:Key="ShapeLocation">169,546.5</av:Point>
<av:Size x:Key="ShapeSize">142,87</av:Size>
<av:PointCollection x:Key="TrueConnector">169,590 100,590
100,684.5</av:PointCollection>
<av:PointCollection x:Key="FalseConnector">311,590 430,590
430,674.5</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,684.5</av:Point>
<av:Size x:Key="ShapeSize">200,51</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="[997790674] In phiếu kho"
sap:VirtualizedContainerService.HintSize="552,1034">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="strErrMsg" />
<Variable x:TypeArguments="x:Boolean" Name="hasError" />
<Variable x:TypeArguments="x:Int32" Name="iSuccess" />
</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 DisplayName="[943112657] Assign"
sap:VirtualizedContainerService.HintSize="530,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Int32">[iSuccess]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Int32">0</InArgument>
</Assign.Value>
</Assign>
<TryCatch DisplayName="[997828705] Print BOL Activities"
sap:VirtualizedContainerService.HintSize="530,810">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<TryCatch.Try>
<rac:ForEachRow CurrentIndex="{x:Null}"
DataTable="[ArrSheetEmailData]" DisplayName="[356738434] For Each <T>"
sap:VirtualizedContainerService.HintSize="512,583">
<rac:ForEachRow.Body>
<ActivityAction x:TypeArguments="sd:DataRow">
<ActivityAction.Argument>
<DelegateInArgument
x:TypeArguments="sd:DataRow" Name="ycmh" />
</ActivityAction.Argument>
<TryCatch DisplayName="[819382713] Try Catch"
sap:VirtualizedContainerService.HintSize="482,435">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String,
x:Object">
<x:Boolean
x:Key="IsPinned">True</x:Boolean>
<x:Boolean
x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<TryCatch.Try>
<If
Condition="[ycmh("FLAG").ToString.Trim <> "PRINT_BOL_OK"
And ycmh("ERROR").ToString.Trim <> "Y"]"
DisplayName="[842008674] If" sap:VirtualizedContainerService.HintSize="464,208">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">True</x:Boolean>
<x:Boolean
x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<If
sap2010:Annotation.AnnotationText="Chỉ tải thẻ kho đối với YCMH có thông tin kho
nhận trên đó" Condition="[ycmh("IS_VIA_INVENTORY").ToString.Trim =
"Y" And ycmh("IS_VIA_INVENTORY_META").ToString.Trim =
"Y"]" DisplayName="[853277700] If"
sap:VirtualizedContainerService.HintSize="464,208">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
<x:Boolean
x:Key="IsAnnotationDocked">False</x:Boolean>
<x:Boolean
x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence DisplayName="[858907694]
Sequence" sap:VirtualizedContainerService.HintSize="833,657">
<Sequence.Variables>
<Variable
x:TypeArguments="sd:DataTable" Name="theKhoData" />
<Variable
x:TypeArguments="x:String" Name="alreadyDownloadedId" />
<Variable
x:TypeArguments="x:String" Name="taxCodeInXml" />
</Sequence.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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="[858909688]
Assign" sap:VirtualizedContainerService.HintSize="811,60">
<Assign.To>
<OutArgument
x:TypeArguments="sd:DataTable">[theKhoData]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="sd:DataTable">[JsonConvert.DeserializeObject(Of DataTable)
(ycmh("THE_KHO_DATA").ToString.Trim)]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[858911788]
Assign" sap:VirtualizedContainerService.HintSize="811,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[alreadyDownloadedId]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">
<Literal
x:TypeArguments="x:String" Value="" />
</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[858913704]
Assign" sap:VirtualizedContainerService.HintSize="811,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[taxCodeInXml]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[ArrSheetInvData.Select("[EMAIL_UUID]='"+
ycmh("UUID").ToString.Trim
+"'")(0)("SUPPLIER_TAX_CODE").ToString.Trim]</InArgument>
</Assign.Value>
</Assign>
<rac:LogMessage
DisplayName="[858915700] Log Message"
sap:VirtualizedContainerService.HintSize="811,51" Level="Info" Message="["Mã
số thuế lấy trên file hóa đơn xml: " + taxCodeInXml]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<rac:ForEachRow
CurrentIndex="{x:Null}" DataTable="[theKhoData]" DisplayName="[858917689] For Each
<T>" sap:VirtualizedContainerService.HintSize="287,208">
<rac:ForEachRow.Body>
<ActivityAction
x:TypeArguments="sd:DataRow">
<ActivityAction.Argument>
<DelegateInArgument
x:TypeArguments="sd:DataRow" Name="rowTheKho" />
</ActivityAction.Argument>
<If
Condition="[rowTheKho("FLAG").ToString.Trim <>
"DOWNLOAD_OK"]" DisplayName="[858919695] If"
sap:VirtualizedContainerService.HintSize="464,208">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
<x:Boolean
x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence
DisplayName="[861695689] Sequence"
sap:VirtualizedContainerService.HintSize="222,266">
<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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Flowchart
DisplayName="[861697729] Xử lý in thẻ kho trên Insight"
sap:VirtualizedContainerService.HintSize="634,636">
<Flowchart.Variables>
<Variable
x:TypeArguments="x:Boolean" Name="isSearchTheKhoOk" />
<Variable
x:TypeArguments="x:String" Name="_idTheKho" />
<Variable
x:TypeArguments="njl:JArray" Name="jArrTheKho" />
<Variable
x:TypeArguments="x:String" Name="vendorCode" />
</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">270,2.5</av:Point>
<av:Size
x:Key="ShapeSize">60,75</av:Size>
</sap:WorkflowViewStateService.ViewState>
<Flowchart.StartNode>
<x:Reference>__ReferenceID3</x:Reference>
</Flowchart.StartNode>
<FlowDecision
x:Name="__ReferenceID2" Condition="[isSearchTheKhoOk]" DisplayName="[861699705]
Flow Decision" sap:VirtualizedContainerService.HintSize="142,87">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsExpanded">True</x:Boolean>
<av:Point
x:Key="ShapeLocation">229,236.5</av:Point>
<av:Size
x:Key="ShapeSize">142,87</av:Size>
</sap:WorkflowViewStateService.ViewState>
<FlowDecision.True>
<FlowStep
x:Name="__ReferenceID0">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence
DisplayName="[864239687] Download các thẻ kho"
sap:VirtualizedContainerService.HintSize="1140,2909">
<Sequence.Variables>
<Variable
x:TypeArguments="x:String" Name="urlInTheKho" />
<Variable
x:TypeArguments="x:String" Name="tempTheKhoFilePath" />
<Variable
x:TypeArguments="x:String" Name="reqBody" />
<Variable
x:TypeArguments="x:Int32" Name="statusInTheKho" />
<Variable
x:TypeArguments="x:String" Name="theKhoFolderPath" />
<Variable
x:TypeArguments="x:String" Name="resTheKho" />
<Variable
x:TypeArguments="x:String" Name="theKhoFilePath" />
<Variable
x:TypeArguments="x:Int32" Name="index" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign
DisplayName="[864243689] Assign"
sap:VirtualizedContainerService.HintSize="1118,60">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[urlInTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
<rac:ForEach
x:TypeArguments="njl:JObject" CurrentIndex="[index]" DisplayName="[864245685] For
Each tải từng thẻ kho <T>"
sap:VirtualizedContainerService.HintSize="1118,2554" Values="[jArrTheKho]">
<rac:ForEach.Body>
<ActivityAction x:TypeArguments="njl:JObject">
<ActivityAction.Argument>
</ActivityAction.Argument>
<Sequence.Variables>
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[rootInput]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[ArrConfig("root_input").ToString.Trim +
ycmh("SUBJECT").ToString.Trim + "_" + ycmh("RECEIVED_AT").ToString.Trim +
"\"]</InArgument>
</Assign.Value>
</Assign>
<OutArgument x:TypeArguments="x:String">[tempTheKhoFilePath]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[ArrConfig("root_temp").ToString +
rowTheKho("YCMH_CODE").ToString.Trim + "_TheKho_" + index.ToString + "_" +
vendorCode + ".pdf"]</InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[theKhoFolderPath]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[rootInput +
rowTheKho("YCMH_CODE").ToString.Trim + "\"]</InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[theKhoFilePath]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[theKhoFolderPath +
rowTheKho("YCMH_CODE").ToString.Trim + "_TheKho_" + index.ToString + "_" +
vendorCode + ".pdf"]</InArgument>
</Assign.Value>
</Assign>
<Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Else>
</If.Else>
</If>
</Sequence>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[_idTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[theKhoFound.SelectToken("_id").ToString]</
InArgument>
</Assign.Value>
</Assign>
<If
sap2010:Annotation.AnnotationText="Xu ly loi tai the kho 2 lan do the kho chua
thong tin cua 2 YCMH" Condition="[alreadyDownloadedId.Contains(_idTheKho) = False]"
DisplayName="[864269672] If" sap:VirtualizedContainerService.HintSize="1080,1705">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
<x:Boolean x:Key="IsAnnotationDocked">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[reqBody]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
<OutArgument x:TypeArguments="x:Object">[rowTheKho("_ID_THE_KHO")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[rowTheKho("_ID_THE_KHO").ToString.Trim +
_idTheKho + "|"]</InArgument>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<rac:HttpClient.Attachments>
<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />
</rac:HttpClient.Attachments>
<rac:HttpClient.Cookies>
</rac:HttpClient.Cookies>
<rac:HttpClient.Headers>
</rac:HttpClient.Headers>
<rac:HttpClient.Parameters>
</rac:HttpClient.Parameters>
<rac:HttpClient.UrlSegments>
</rac:HttpClient.UrlSegments>
</rac:HttpClient>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<DoWhile.Variables>
</DoWhile.Variables>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:PathExists DisplayName="[864447697] Path Exists" Exists="[isFileDownloaded]"
sap:VirtualizedContainerService.HintSize="314,89" Path="[tempTheKhoFilePath]"
PathType="File" />
</Sequence>
</DoWhile>
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[rowTheKho("THE_KHO_FILE_PATH")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[rowTheKho("THE_KHO_FILE_PATH").ToString.Trim +
theKhoFilePath + "|"]</InArgument>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[alreadyDownloadedId]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[alreadyDownloadedId +
_idTheKho]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
<If.Else>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[rowTheKho("MESSAGE")]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
</Sequence>
</If.Else>
</If>
</Sequence>
</If.Then>
<If.Else>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign DisplayName="[864470691] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[rowTheKho("_ID_THE_KHO")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[rowTheKho("_ID_THE_KHO").ToString.Trim +
_idTheKho + "|"]</InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[rowTheKho("THE_KHO_FILE_PATH")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[""]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Else>
</If>
</Sequence>
</ActivityAction>
</rac:ForEach.Body>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:ForEach>
</Sequence>
</FlowStep>
</FlowDecision.True>
<FlowDecision.False>
<FlowStep
x:Name="__ReferenceID1">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence
DisplayName="[864474695] Có lỗi" sap:VirtualizedContainerService.HintSize="200,51">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign
DisplayName="[864478710] Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[rowTheKho("MESSAGE")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">["Không tìm thấy thẻ kho nào cho YCMH " +
rowTheKho("YCMH_CODE").ToString.Trim + " với NCU có MST " +
ycmh("TAX_CODE_SJ").ToString.Trim + " trên Insight"]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</FlowStep>
</FlowDecision.False>
</FlowDecision>
<x:Reference>__ReferenceID0</x:Reference>
<x:Reference>__ReferenceID1</x:Reference>
<FlowStep
x:Name="__ReferenceID3">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<av:Point
x:Key="ShapeLocation">200,130</av:Point>
<av:Size
x:Key="ShapeSize">200,51</av:Size>
<av:PointCollection x:Key="ConnectorLocation">300,181
300,236.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence
DisplayName="[570191671] Tìm kiếm thông tin Thẻ kho"
sap:VirtualizedContainerService.HintSize="200,51">
<Sequence.Variables>
<Variable
x:TypeArguments="x:String" Name="ycmhInTheKho" />
<Variable
x:TypeArguments="x:String" Name="urlSearchTheKho" />
<Variable
x:TypeArguments="x:String" Name="xFunctionId" />
<Variable
x:TypeArguments="x:String" Name="jsonSearchTheKho" />
<Variable
x:TypeArguments="x:Int32" Name="statusSearchTheKho" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsExpanded">False</x:Boolean>
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage
DisplayName="[570193671] Log Message"
sap:VirtualizedContainerService.HintSize="1835,51" Level="Info"
Message="["Thực hiện tìm kiếm thông tin thẻ kho"]">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign
DisplayName="[570195672] Assign"
sap:VirtualizedContainerService.HintSize="1835,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Boolean">[isSearchTheKhoOk]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Boolean">False</InArgument>
</Assign.Value>
</Assign>
<If
Condition="[ArrConfig("ENV").ToString.Trim = "DEV"]"
DisplayName="[570197671] If vendorCode"
sap:VirtualizedContainerService.HintSize="1835,51">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Assign
DisplayName="[570203674] Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[vendorCode]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">100112490</InArgument>
</Assign.Value>
</Assign>
</If.Then>
<If.Else>
<Assign
DisplayName="[570205677] Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[vendorCode]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[ycmh("TAX_CODE_SJ").ToString.Trim]</InArgument>
</Assign.Value>
</Assign>
</If.Else>
</If>
<Assign
DisplayName="[570207670] Assign"
sap:VirtualizedContainerService.HintSize="1835,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[ycmhInTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[rowTheKho("YCMH_CODE").ToString.Trim]</InArgument>
</Assign.Value>
</Assign>
<Assign
DisplayName="[570209671] Assign"
sap:VirtualizedContainerService.HintSize="1835,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[urlSearchTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[If(ArrConfig("ENV").ToString.Trim = "DEV",
ArrConfig("SEARCH_THE_KHO_DEV").ToString.Trim,
ArrConfig("SEARCH_THE_KHO_PROD").ToString.Trim)]</InArgument>
</Assign.Value>
</Assign>
<Assign
DisplayName="[570211671] Assign"
sap:VirtualizedContainerService.HintSize="1835,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[urlSearchTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[urlSearchTheKho.Replace("{venCode}",
vendorCode).Replace("{ycmhCode}", ycmhInTheKho)]</InArgument>
</Assign.Value>
</Assign>
<Assign
DisplayName="[570213669] Assign"
sap:VirtualizedContainerService.HintSize="1835,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[xFunctionId]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[If(ArrConfig("ENV").ToString.Trim = "DEV",
ArrConfig("FUNC_ID_SEARCH_THE_KHO_DEV").ToString.Trim,
ArrConfig("FUNC_ID_SEARCH_THE_KHO_PROD").ToString.Trim)]</InArgument>
</Assign.Value>
</Assign>
<rac:LogMessage
DisplayName="[570215672] Log Message"
sap:VirtualizedContainerService.HintSize="1835,51" Level="Info"
Message="["***Call GET: " + urlSearchTheKho]">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<rac:HttpClient
Body="{x:Null}" ConsumerKey="{x:Null}" ConsumerSecret="{x:Null}"
ContinueOnError="{x:Null}" HttpProxy="{x:Null}" OAuth1Token="{x:Null}"
OAuth1TokenSecret="{x:Null}" OAuth2Token="{x:Null}" Password="{x:Null}"
PasswordProxy="{x:Null}" ResourcePath="{x:Null}" UserNameProxy="{x:Null}"
Username="{x:Null}" AcceptFormat="JSON" BodyFormat="application/json"
DisplayName="[570217670] Http Client" EndPoint="[urlSearchTheKho]"
sap:VirtualizedContainerService.HintSize="1835,22" Method="GET"
Result="[jsonSearchTheKho]" StatusCode="[statusSearchTheKho]" TimeoutMS="60000">
<rac:HttpClient.Attachments>
</rac:HttpClient.Attachments>
<rac:HttpClient.Cookies>
</rac:HttpClient.Cookies>
<rac:HttpClient.Headers>
<InArgument
x:TypeArguments="x:String" x:Key="x-function-id">[xFunctionId]</InArgument>
<InArgument
x:TypeArguments="x:String" x:Key="Authorization">["Bearer " +
jwtToken]</InArgument>
</rac:HttpClient.Headers>
<rac:HttpClient.Parameters>
</rac:HttpClient.Parameters>
<rac:HttpClient.UrlSegments>
</rac:HttpClient.UrlSegments>
</rac:HttpClient>
<Delay
DisplayName="[570222681] Delay" Duration="00:00:02"
sap:VirtualizedContainerService.HintSize="1835,22" />
<rac:LogMessage
DisplayName="[570224696] Log Message"
sap:VirtualizedContainerService.HintSize="1835,91" Level="Info"
Message="["Status code response: " + statusSearchTheKho.ToString]">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<If
Condition="[statusSearchTheKho = 200]" DisplayName="[570226685] If"
sap:VirtualizedContainerService.HintSize="1835,5112">
<sap:WorkflowViewStateService.ViewState>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence
DisplayName="[570870725] Sequence"
sap:VirtualizedContainerService.HintSize="1474,4964">
<Sequence.Variables>
<Variable
x:TypeArguments="njl:JObject" Name="jsonSearch" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign
DisplayName="[570874697] Assign"
sap:VirtualizedContainerService.HintSize="1452,60">
<Assign.To>
<OutArgument x:TypeArguments="njl:JObject">[jsonSearch]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="njl:JObject">[JObject.Parse(jsonSearchTheKho)]</InArgument>
</Assign.Value>
</Assign>
<If
Condition="[Integer.Parse(jsonSearch.SelectToken("length").ToString) >
0]" DisplayName="[570876689] If"
sap:VirtualizedContainerService.HintSize="1452,4609">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence DisplayName="[571172689] Sequence"
sap:VirtualizedContainerService.HintSize="336,283">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign.To>
<OutArgument x:TypeArguments="x:Boolean">[isSearchTheKhoOk]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Boolean">True</InArgument>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:DeserializeJsonArray>
</Sequence>
</If.Then>
<If.Else>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<If
Condition="[vendorCode.Contains("-")]" DisplayName="[571182681] If call
API search thẻ kho remove -" sap:VirtualizedContainerService.HintSize="1069,2123">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage DisplayName="[571256678] Log Message"
sap:VirtualizedContainerService.HintSize="922,91" Level="Info" Message="["Call
API search thẻ kho remove -"]">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[ycmhInTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[rowTheKho("YCMH_CODE").ToString.Trim]</
InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[urlSearchTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[urlSearchTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[urlSearchTheKho.Replace("{venCode}",
vendorCode.Replace("-"c, "")).Replace("{ycmhCode}", ycmhInTheKho)]</InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[xFunctionId]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<rac:HttpClient.Attachments>
<rac:HttpClient.Cookies>
</rac:HttpClient.Cookies>
<rac:HttpClient.Headers>
<InArgument x:TypeArguments="x:String"
x:Key="x-function-id">[xFunctionId]</InArgument>
</rac:HttpClient.Headers>
<rac:HttpClient.Parameters>
</rac:HttpClient.Parameters>
<rac:HttpClient.UrlSegments>
</rac:HttpClient.UrlSegments>
</rac:HttpClient>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign.To>
<OutArgument x:TypeArguments="njl:JObject">[jsonSearch]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="njl:JObject">[JObject.Parse(jsonSearchTheKho)]</InArgument>
</Assign.Value>
</Assign>
<If Condition="[Integer.Parse(jsonSearch.SelectToken("length").ToString)
> 0]" DisplayName="[571315674] If"
sap:VirtualizedContainerService.HintSize="675,431">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign.To>
<OutArgument x:TypeArguments="x:Boolean">[isSearchTheKhoOk]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Boolean">True</InArgument>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:DeserializeJsonArray>
</Sequence>
</If.Then>
<If.Else>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
</If.Else>
</If>
</Sequence>
</If.Then>
<If.Else>
</If.Else>
</If>
</Sequence>
</If.Then>
</If>
<If
Condition="[isSearchTheKhoOk = False And taxCodeInXml <> ""]"
DisplayName="[571333695] If call API search thẻ kho theo MST hóa đơn"
sap:VirtualizedContainerService.HintSize="1069,2043">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence DisplayName="[571405684] Call API search thẻ kho theo MST hóa đơn"
sap:VirtualizedContainerService.HintSize="944,1895">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[ycmhInTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[rowTheKho("YCMH_CODE").ToString.Trim]</
InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[urlSearchTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[urlSearchTheKho]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[urlSearchTheKho.Replace("{venCode}",
taxCodeInXml).Replace("{ycmhCode}", ycmhInTheKho)]</InArgument>
</Assign.Value>
</Assign>
<Assign.To>
<OutArgument x:TypeArguments="x:String">[xFunctionId]</OutArgument>
</Assign.To>
<Assign.Value>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<rac:HttpClient.Attachments>
</rac:HttpClient.Attachments>
<rac:HttpClient.Cookies>
</rac:HttpClient.Cookies>
<rac:HttpClient.Headers>
<InArgument x:TypeArguments="x:String"
x:Key="x-function-id">[xFunctionId]</InArgument>
</rac:HttpClient.Headers>
<rac:HttpClient.Parameters>
</rac:HttpClient.Parameters>
<rac:HttpClient.UrlSegments>
</rac:HttpClient.UrlSegments>
</rac:HttpClient>
<Delay DisplayName="[571421694] Delay" Duration="00:00:02"
sap:VirtualizedContainerService.HintSize="922,22" />
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign.To>
<OutArgument x:TypeArguments="njl:JObject">[jsonSearch]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="njl:JObject">[JObject.Parse(jsonSearchTheKho)]</InArgument>
</Assign.Value>
</Assign>
<If Condition="[Integer.Parse(jsonSearch.SelectToken("length").ToString)
> 0]" DisplayName="[571457696] If"
sap:VirtualizedContainerService.HintSize="675,431">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="[571469685] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument x:TypeArguments="x:Boolean">[isSearchTheKhoOk]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Boolean">True</InArgument>
</Assign.Value>
</Assign>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:DeserializeJsonArray>
</Sequence>
</If.Then>
<If.Else>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
</If.Else>
</If>
</Sequence>
</If.Then>
<If.Else>
</If.Else>
</If>
</Sequence>
</If.Then>
</If>
</Sequence>
</If.Else>
</If>
</Sequence>
</If.Then>
<If.Else>
<Sequence
DisplayName="[571475704] Sequence"
sap:VirtualizedContainerService.HintSize="336,277">
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<sap:WorkflowViewStateService.ViewState>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Throw
DisplayName="[212752187] Throw" Exception="[new Exception("Có lỗi khi call API
search thẻ kho")]" sap:VirtualizedContainerService.HintSize="314,22" />
</Sequence>
</If.Else>
</If>
</Sequence>
<FlowStep.Next>
<x:Reference>__ReferenceID2</x:Reference>
</FlowStep.Next>
</FlowStep>
</Flowchart>
<If
Condition="[rowTheKho("MESSAGE").ToString.Trim = ""]"
DisplayName="[864480700] If" sap:VirtualizedContainerService.HintSize="200,51">
<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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Assign
DisplayName="[864486688] Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[rowTheKho("FLAG")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">["DOWNLOAD_OK"]</InArgument>
</Assign.Value>
</Assign>
</If.Then>
<If.Else>
<Assign
DisplayName="[864488708] Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[rowTheKho("FLAG")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">["DOWNLOAD_NOK"]</InArgument>
</Assign.Value>
</Assign>
</If.Else>
</If>
</Sequence>
</If.Then>
</If>
</ActivityAction>
</rac:ForEachRow.Body>
<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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:ForEachRow>
<Sequence DisplayName="[864490692]
Kiểm tra các YCMH trong 1 line đã xử lý OK chưa"
sap:VirtualizedContainerService.HintSize="811,51">
<Sequence.Variables>
<Variable
x:TypeArguments="sd:DataRow[]" Name="rowProcessOK" />
<Variable
x:TypeArguments="x:String" Name="currentLineStatus" />
<Variable
x:TypeArguments="x:String" Name="currentLineMessages" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsExpanded">False</x:Boolean>
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="[864492686]
Assign" sap:VirtualizedContainerService.HintSize="531,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[currentLineMessages]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">
<Literal
x:TypeArguments="x:String" Value="" />
</InArgument>
</Assign.Value>
</Assign>
<rac:ForEachRow
CurrentIndex="{x:Null}" DataTable="[theKhoData]" DisplayName="[864494686] For Each
Collect messages <T>" sap:VirtualizedContainerService.HintSize="531,356">
<rac:ForEachRow.Body>
<ActivityAction
x:TypeArguments="sd:DataRow">
<ActivityAction.Argument>
<DelegateInArgument
x:TypeArguments="sd:DataRow" Name="mess" />
</ActivityAction.Argument>
<If
Condition="[mess("MESSAGE").ToString.Trim <> ""]"
DisplayName="[864496689] If" sap:VirtualizedContainerService.HintSize="464,208">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Assign
DisplayName="[864500694] Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[currentLineMessages]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[currentLineMessages + mess("MESSAGE").ToString.Trim +
". "]</InArgument>
</Assign.Value>
</Assign>
</If.Then>
</If>
</ActivityAction>
</rac:ForEachRow.Body>
<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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:ForEachRow>
<Assign DisplayName="[864502693]
Assign" sap:VirtualizedContainerService.HintSize="531,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("THE_KHO_DATA")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">[JsonConvert.SerializeObject(theKhoData).ToString]</
InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[864504709]
Assign" sap:VirtualizedContainerService.HintSize="531,60">
<Assign.To>
<OutArgument
x:TypeArguments="sd:DataRow[]">[rowProcessOK]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="sd:DataRow[]">[theKhoData.Select("FLAG =
'DOWNLOAD_OK'")]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[864506761]
Get current YCMH process status" sap:VirtualizedContainerService.HintSize="531,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[currentLineStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[If(rowProcessOK.Count = theKhoData.Rows.Count,
"PRINT_BOL_OK", "PRINT_BOL_NOK")]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[864508777]
Gán flag" sap:VirtualizedContainerService.HintSize="531,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("FLAG")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">[currentLineStatus]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[864510697]
Gán message" sap:VirtualizedContainerService.HintSize="531,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("MESSAGE")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[currentLineMessages.Trim]</InArgument>
</Assign.Value>
</Assign>
<If
Condition="[currentLineMessages.Trim <> ""]"
DisplayName="[864512688] If" sap:VirtualizedContainerService.HintSize="531,332">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence
DisplayName="[864520694] Sequence"
sap:VirtualizedContainerService.HintSize="264,184">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsExpanded">True</x:Boolean>
<x:Boolean
x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign
DisplayName="[864522694] Gán error"
sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("ERROR")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">["Y"]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
<If.Else>
<Assign
DisplayName="[864524686] Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Int32">[iSuccess]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Int32">[iSuccess + 1]</InArgument>
</Assign.Value>
</Assign>
</If.Else>
</If>
</Sequence>
</Sequence>
</If.Then>
<If.Else>
<rac:LogMessage
DisplayName="[864526687] Log Message"
sap:VirtualizedContainerService.HintSize="200,51" Level="Info" Message="["YCMH
không có thông tin kho nhận, bỏ qua bước tải thẻ kho"]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
</If.Else>
</If>
</If.Then>
<If.Else>
<If
sap2010:Annotation.AnnotationText="Hang khong qua kho thi khong can tai the
kho
" Condition="[ycmh("IS_VIA_INVENTORY").ToString.Trim =
"N" And ycmh("ERROR").ToString.Trim <> "Y"]"
DisplayName="[864528709] If" sap:VirtualizedContainerService.HintSize="200,51">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
<x:Boolean
x:Key="IsExpanded">False</x:Boolean>
<x:Boolean
x:Key="IsAnnotationDocked">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence DisplayName="[864538706]
Sequence" sap:VirtualizedContainerService.HintSize="200,51">
<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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="[864540712]
Gán flag" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("FLAG")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">["PRINT_BOL_OK"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[864542708]
Gán flag" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("MESSAGE")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[""]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[864544695]
Assign" sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Int32">[iSuccess]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Int32">[iSuccess + 1]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
</If>
</If.Else>
</If>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception"
sap:VirtualizedContainerService.HintSize="468,21">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsExpanded">False</x:Boolean>
<x:Boolean
x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ActivityAction
x:TypeArguments="s:Exception">
<ActivityAction.Argument>
<DelegateInArgument
x:TypeArguments="s:Exception" Name="ex" />
</ActivityAction.Argument>
<Sequence DisplayName="[148162680]
Sequence" sap:VirtualizedContainerService.HintSize="336,911">
<Sequence.Variables>
<Variable x:TypeArguments="x:String"
Name="curIEmailErrMess" />
<Variable x:TypeArguments="x:Boolean"
Name="isTakeScreeen" />
<Variable x:TypeArguments="x:String"
Name="errorToOperator" />
</Sequence.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">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="[148164685]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Boolean">[isTakeScreeen]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Boolean">True</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[148166691]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[curIEmailErrMess]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">["Common\PrintBOL.xaml: [" + ex.Source + "] " +
ex.Message.ToString]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[148168693]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("FLAG")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">["PRINT_BOL_NOK"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[148170686]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("MESSAGE")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">[curIEmailErrMess]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[148172688]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("ERROR")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">["Y"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[148174700]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ycmh("DEV_CHECK")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">["Y"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[434666166]
Assign" sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[errorToOperator]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">["Subject mail " + ycmh("SUBJECT").ToString.Trim + " gửi
bởi " + ycmh("FROM").ToString.Trim + " vào lúc " +
ycmh("RECEIVED_AT").ToString.Trim + " gặp lỗi: " + curIEmailErrMess]</InArgument>
</Assign.Value>
</Assign>
<rac:InvokeWorkflowFile
ContinueOnError="{x:Null}" WorkflowTimeout="{x:Null}" DisplayName="[148176720]
Invoke Workflow File" sap:VirtualizedContainerService.HintSize="314,87"
WorkflowFileName="Framework\UnexpectedErrNotification.xaml">
<rac:InvokeWorkflowFile.Arguments>
<InOutArgument
x:TypeArguments="njl:JToken" x:Key="ArrConfig">[ArrConfig]</InOutArgument>
<InOutArgument
x:TypeArguments="x:String" x:Key="errMess">[errorToOperator]</InOutArgument>
<InOutArgument
x:TypeArguments="njl:JToken" x:Key="ArrMess">[ArrMess]</InOutArgument>
<InOutArgument
x:TypeArguments="x:Boolean" x:Key="isTakeScreeen">[isTakeScreeen]</InOutArgument>
</rac:InvokeWorkflowFile.Arguments>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary
x:TypeArguments="x:String, x:Object">
<x:Boolean
x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:InvokeWorkflowFile>
</Sequence>
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
</ActivityAction>
</rac:ForEachRow.Body>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String,
x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:ForEachRow>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception"
sap:VirtualizedContainerService.HintSize="516,21">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String,
x:Object">
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ActivityAction x:TypeArguments="s:Exception">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="s:Exception"
Name="ex" />
</ActivityAction.Argument>
<Sequence DisplayName="[201259949] Sequence"
sap:VirtualizedContainerService.HintSize="200,51">
<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>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="[203490221] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Boolean">[hasError]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Boolean">True</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[293435398] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[strErrMsg]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[ex.Message]</InArgument>
</Assign.Value>
</Assign>
<rac:LogMessage DisplayName="[201263950] Log
Message" sap:VirtualizedContainerService.HintSize="314,91" Level="Error"
Message="["++++++++++ ERROR: " + ex.ToString]" />
<rac:LogMessage DisplayName="[530309171] Log
Message" sap:VirtualizedContainerService.HintSize="314,91" Level="Error"
Message="["++++++++++ ELEMENT_CAUSED_ERROR: " + ex.source]" />
</Sequence>
</ActivityAction>
</Catch>
</TryCatch.Catches>
<TryCatch.Finally>
<rae:ExcelApplicationScope ExcelProperties="{x:Null}"
Password="{x:Null}" AutoSave="True" BreakLinks="False" DisplayName="[872473340]
Excel Application Scope" sap:VirtualizedContainerService.HintSize="414,200"
WorkbookPath="[VALIDATE_FILE_PATH]">
<rae:ExcelApplicationScope.Body>
<ActivityAction
x:TypeArguments="re:WorkbookApplication">
<ActivityAction.Argument>
<DelegateInArgument
x:TypeArguments="re:WorkbookApplication" Name="ExcelWorkbookScope" />
</ActivityAction.Argument>
<Sequence DisplayName="[872475450] Do"
sap:VirtualizedContainerService.HintSize="336,1179">
<Sequence.Variables>
<Variable x:TypeArguments="sd:DataRow[]"
Name="PrintBOLOK" />
<Variable x:TypeArguments="x:String"
Name="strStageStatus" />
</Sequence.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">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage DisplayName="[016795064] Log
Message" sap:VirtualizedContainerService.HintSize="314,91" Level="Info"
Message="["iSuccess: " + iSuccess.ToString]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String,
x:Object">
<x:Boolean
x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<Assign DisplayName="[284608607] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="sd:DataRow[]">[PrintBOLOK]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="sd:DataRow[]">[ArrSheetEmailData.Select("[FLAG]='PRINT_BOL_OK' AND
([ERROR] = '' OR [ERROR] is null)")]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[804205657] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[strStageStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[If(PrintBOLOK.Count = iSuccess, "OK",
"NOK")]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[881012197] Assign"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:String">[strStageStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:String">[If(hasError = True, "ERROR",
strStageStatus)]</InArgument>
</Assign.Value>
</Assign>
<rac:LogMessage DisplayName="[872502408] Log
Message" sap:VirtualizedContainerService.HintSize="314,51" Level="Info"
Message="["++++++++++ Mark " + strStageStatus]" />
<rae:ExcelWriteRange AddHeaders="False"
DataTable="[ArrSheetEmailData]" DisplayName="[094414357] Excel Write Range"
sap:VirtualizedContainerService.HintSize="314,51" SheetName="EMAIL_DATA"
StartingCell="A2" />
<rae:ExcelWriteRange AddHeaders="False"
DataTable="[ArrSheetInvData]" DisplayName="[131964036] Excel Write Range"
sap:VirtualizedContainerService.HintSize="314,51" SheetName="INV_DATA"
StartingCell="A2" />
<Assign DisplayName="[540215184] STAGE STATUS"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ArrSheetStage(3)("STATUS")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">[strStageStatus]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[337869127] STAGE STATUS"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="njl:JToken">[ArrStage("PRINT_BOL")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="njl:JToken">[strStageStatus]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[546295920] STAGE MESSAGE"
sap:VirtualizedContainerService.HintSize="314,60">
<Assign.To>
<OutArgument
x:TypeArguments="x:Object">[ArrSheetStage(3)("MESSAGE")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument
x:TypeArguments="x:Object">[If(hasError, strErrMsg, "")]</InArgument>
</Assign.Value>
</Assign>
<rae:ExcelWriteRange AddHeaders="False"
DataTable="[ArrSheetStage]" DisplayName="[584788927] Excel Write Range"
sap:VirtualizedContainerService.HintSize="314,51" SheetName="STAGE"
StartingCell="A2" />
</Sequence>
</ActivityAction>
</rae:ExcelApplicationScope.Body>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String,
x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rae:ExcelApplicationScope>
</TryCatch.Finally>
</TryCatch>
</Sequence>
</FlowStep>
</FlowDecision.True>
<FlowDecision.False>
<FlowStep x:Name="__ReferenceID11">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">330,674.5</av:Point>
<av:Size x:Key="ShapeSize">200,51</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage DisplayName="[258217976] Missing Token"
sap:VirtualizedContainerService.HintSize="200,51" Level="Info" Message="["++++
++++++ Missing Insight's token"]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
</FlowStep>
</FlowDecision.False>
</FlowDecision>
</FlowDecision.True>
<FlowDecision.False>
<FlowStep x:Name="__ReferenceID7">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">470,564.5</av:Point>
<av:Size x:Key="ShapeSize">200,51</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage DisplayName="[079386076] Ran"
sap:VirtualizedContainerService.HintSize="200,51" Level="Info" Message="["++++
++++++ Ran"]" />
</FlowStep>
</FlowDecision.False>
</FlowDecision>
</FlowDecision.True>
<FlowDecision.False>
<FlowStep x:Name="__ReferenceID9">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">660,434.02</av:Point>
<av:Size x:Key="ShapeSize">200,51</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage DisplayName="[238895165] Required prev step"
sap:VirtualizedContainerService.HintSize="200,51" Level="Info" Message="["++++
++++++ Required previous step has not to be OK yet"]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
</FlowStep>
</FlowDecision.False>
</FlowDecision>
</FlowDecision.True>
<FlowDecision.False>
<FlowStep x:Name="__ReferenceID12">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">840,314.5</av:Point>
<av:Size x:Key="ShapeSize">200,51</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="[947250310] No Data To Run"
sap:VirtualizedContainerService.HintSize="200,51">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="noDataIsOK" />
</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>
<rac:LogMessage DisplayName="[971333337] No Data To Run"
sap:VirtualizedContainerService.HintSize="242,51" Level="Info" Message="["++++
++++++ No Data To Run"]" />
<Assign DisplayName="[975298299] Assign"
sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[noDataIsOK]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">OK</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[968285323] STAGE STATUS"
sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[ArrSheetStage(3)
("STATUS")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[noDataIsOK]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="[968289367] STAGE STATUS"
sap:VirtualizedContainerService.HintSize="242,60">
<Assign.To>
<OutArgument
x:TypeArguments="njl:JToken">[ArrStage("PRINT_BOL")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="njl:JToken">[noDataIsOK]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</FlowStep>
</FlowDecision.False>
</FlowDecision>
<x:Reference>__ReferenceID4</x:Reference>
<FlowStep x:Name="__ReferenceID13">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">670,114.5</av:Point>
<av:Size x:Key="ShapeSize">200,51</av:Size>
<av:PointCollection x:Key="ConnectorLocation">770,165.5
770,206.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<rac:LogMessage DisplayName="[915779510] STEP 4: PrintBOL.xaml"
sap:VirtualizedContainerService.HintSize="200,51" Level="Info"
Message="["=============== STEP 4: PrintBOL.xaml ==============="]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</rac:LogMessage>
<FlowStep.Next>
<x:Reference>__ReferenceID5</x:Reference>
</FlowStep.Next>
</FlowStep>
<x:Reference>__ReferenceID6</x:Reference>
<x:Reference>__ReferenceID7</x:Reference>
<x:Reference>__ReferenceID8</x:Reference>
<x:Reference>__ReferenceID9</x:Reference>
<x:Reference>__ReferenceID10</x:Reference>
<x:Reference>__ReferenceID11</x:Reference>
<x:Reference>__ReferenceID12</x:Reference>
</Flowchart>
</Activity>