0% found this document useful (0 votes)
12 views57 pages

Workflow View State Service

The document describes a XAML workflow for a 'Print BOL' activity, defining various properties and flow decisions based on conditions related to email data and token validation. It includes a flowchart structure with nested decisions and actions, such as error handling and data processing. The workflow utilizes multiple namespaces and references to facilitate its operations within a .NET environment.

Uploaded by

Bonbihandmade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views57 pages

Workflow View State Service

The document describes a XAML workflow for a 'Print BOL' activity, defining various properties and flow decisions based on conditions related to email data and token validation. It includes a flowchart structure with nested decisions and actions, such as error handling and data processing. The workflow utilizes multiple namespaces and references to facilitate its operations within a .NET environment.

Uploaded by

Bonbihandmade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 57

<Activity mc:Ignorable="sap sap2010" x:Class="PrintBOL"

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
&gt; 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(&quot;COLLECT_YCMH_FILE&quot;).ToString = &quot;OK&quot;]"
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(&quot;PRINT_BOL&quot;).ToString &lt;&gt; &quot;OK&quot;]"
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
&lt;&gt; &quot;&quot;]" 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 &lt;T&gt;"
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(&quot;FLAG&quot;).ToString.Trim &lt;&gt; &quot;PRINT_BOL_OK&quot;
And ycmh(&quot;ERROR&quot;).ToString.Trim &lt;&gt; &quot;Y&quot;]"
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(&quot;IS_VIA_INVENTORY&quot;).ToString.Trim =
&quot;Y&quot; And ycmh(&quot;IS_VIA_INVENTORY_META&quot;).ToString.Trim =
&quot;Y&quot;]" 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="[&quot;Mã
số thuế lấy trên file hóa đơn xml: &quot; + 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
&lt;T&gt;" 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(&quot;FLAG&quot;).ToString.Trim &lt;&gt;
&quot;DOWNLOAD_OK&quot;]" 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>

<av:PointCollection x:Key="ConnectorLocation">300,77.5 300,130</av:PointCollection>


<x:Double
x:Key="Width">620</x:Double>
</scg:Dictionary>

</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>

<av:PointCollection x:Key="FalseConnector">371,280 520,280


520,334.5</av:PointCollection>

<av:PointCollection x:Key="TrueConnector">229,280 100,280


100,324.5</av:PointCollection>
</scg:Dictionary>

</sap:WorkflowViewStateService.ViewState>
<FlowDecision.True>
<FlowStep
x:Name="__ReferenceID0">

<sap:WorkflowViewStateService.ViewState>

<scg:Dictionary x:TypeArguments="x:String, x:Object">


<av:Point
x:Key="ShapeLocation">0,324.5</av:Point>
<av:Size
x:Key="ShapeSize">200,51</av:Size>

</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>

<scg:Dictionary x:TypeArguments="x:String, x:Object">

<x:Boolean x:Key="IsExpanded">True</x:Boolean>

</scg:Dictionary>

</sap:WorkflowViewStateService.ViewState>

<rac:LogMessage DisplayName="[864241682] Log Message"


sap:VirtualizedContainerService.HintSize="1118,91" Level="Info" Message="[&quot;Tải
xuống thẻ kho&quot;]">

<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="[864243689] Assign"
sap:VirtualizedContainerService.HintSize="1118,60">
<Assign.To>

<OutArgument x:TypeArguments="x:String">[urlInTheKho]</OutArgument>

</Assign.To>

<Assign.Value>

<InArgument x:TypeArguments="x:String">[If(ArrConfig("ENV").ToString.Trim = "DEV",


ArrConfig("URL_PRINT_THE_KHO_DEV").ToString.Trim,
ArrConfig("URL_PRINT_THE_KHO_PROD").ToString.Trim)]</InArgument>

</Assign.Value>
</Assign>
<rac:ForEach
x:TypeArguments="njl:JObject" CurrentIndex="[index]" DisplayName="[864245685] For
Each tải từng thẻ kho &lt;T&gt;"
sap:VirtualizedContainerService.HintSize="1118,2554" Values="[jArrTheKho]">

<rac:ForEach.Body>

<ActivityAction x:TypeArguments="njl:JObject">

<ActivityAction.Argument>

<DelegateInArgument x:TypeArguments="njl:JObject" Name="theKhoFound" />

</ActivityAction.Argument>

<Sequence DisplayName="[864247703] Do"


sap:VirtualizedContainerService.HintSize="1102,2420">

<Sequence.Variables>

<Variable x:TypeArguments="x:String" Name="rootInput" />

</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="[864249682] Assign"


sap:VirtualizedContainerService.HintSize="1080,60">

<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>

<Assign DisplayName="[864251674] Assign"


sap:VirtualizedContainerService.HintSize="1080,60">
<Assign.To>

<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 DisplayName="[864253671] Assign"


sap:VirtualizedContainerService.HintSize="1080,60">

<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 DisplayName="[864255672] Assign"


sap:VirtualizedContainerService.HintSize="1080,60">

<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 DisplayName="[864257671] Check và tạo folder"


sap:VirtualizedContainerService.HintSize="1080,51">

<Sequence.Variables>

<Variable x:TypeArguments="x:Boolean" Name="isFolderDhscExisted" />


</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:PathExists DisplayName="[864259674] Path Exists"


Exists="[isFolderDhscExisted]" sap:VirtualizedContainerService.HintSize="464,51"
Path="[theKhoFolderPath]" PathType="Folder" />
<If
Condition="[isFolderDhscExisted]" DisplayName="[864261670] 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>

</scg:Dictionary>

</sap:WorkflowViewStateService.ViewState>

<If.Else>

<rac:CreateDirectory ContinueOnError="{x:Null}" DisplayName="[864265674] Create


Directory" sap:VirtualizedContainerService.HintSize="200,22"
Path="[theKhoFolderPath]" />

</If.Else>

</If>

</Sequence>

<Assign DisplayName="[864267679] Assign"


sap:VirtualizedContainerService.HintSize="1080,60">

<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>

<scg:Dictionary x:TypeArguments="x:String, x:Object">

<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>

<Sequence DisplayName="[864373689] Process"


sap:VirtualizedContainerService.HintSize="719,1557">

<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="[864375694] Assign"


sap:VirtualizedContainerService.HintSize="697,60">

<Assign.To>

<OutArgument x:TypeArguments="x:String">[reqBody]</OutArgument>

</Assign.To>

<Assign.Value>

<InArgument x:TypeArguments="x:String">["{""objectIdList"": ["""+ _idTheKho


+"""]}"]</InArgument>

</Assign.Value>

</Assign>

<Assign DisplayName="[864377686] Assign"


sap:VirtualizedContainerService.HintSize="697,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>

<rac:LogMessage DisplayName="[864379683] Log Message"


sap:VirtualizedContainerService.HintSize="697,91" Level="Info"
Message="[&quot;***Call POST: &quot; + urlInTheKho]">

<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>

<rac:LogMessage DisplayName="[864381684] Log Message"


sap:VirtualizedContainerService.HintSize="697,91" Level="Info"
Message="[&quot;Body: &quot; + reqBody]">

<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>

<rac:HttpClient 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}" UserNameProxy="{x:Null}" Username="{x:Null}"
AcceptFormat="JSON" Body="[reqBody]" BodyFormat="application/json"
DisplayName="[864383697] Http Client" EndPoint="[urlInTheKho]"
sap:VirtualizedContainerService.HintSize="697,22" Method="POST"
ResourcePath="[tempTheKhoFilePath]" Result="[resTheKho]"
StatusCode="[statusInTheKho]" TimeoutMS="60000">

<rac:HttpClient.Attachments>
<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Attachments>

<rac:HttpClient.Cookies>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Cookies>

<rac:HttpClient.Headers>

<InArgument x:TypeArguments="x:String" x:Key="Authorization">["Bearer " +


jwtToken]</InArgument>

</rac:HttpClient.Headers>

<rac:HttpClient.Parameters>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Parameters>

<rac:HttpClient.UrlSegments>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.UrlSegments>

</rac:HttpClient>

<Delay DisplayName="[864385690] Delay" Duration="00:00:03"


sap:VirtualizedContainerService.HintSize="697,22" />

<rac:LogMessage DisplayName="[864387693] Log Message"


sap:VirtualizedContainerService.HintSize="697,91" Level="Info"
Message="[&quot;Status code res: &quot; + statusInTheKho.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>

<If Condition="[statusInTheKho = 200]" DisplayName="[864389695] If"


sap:VirtualizedContainerService.HintSize="697,716">

<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>

<If.Then>

<Sequence DisplayName="[864429684] Sequence"


sap:VirtualizedContainerService.HintSize="336,568">

<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>

<DoWhile DisplayName="[864431701] Do While Chờ tải file"


sap:VirtualizedContainerService.HintSize="314,51">

<DoWhile.Variables>

<Variable x:TypeArguments="x:Boolean" Name="isFileDownloaded" />

</DoWhile.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>

<DoWhile.Condition>[isFileDownloaded &lt;&gt; True]</DoWhile.Condition>

<Sequence DisplayName="[864445709] 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>

</scg:Dictionary>

</sap:WorkflowViewStateService.ViewState>
<rac:PathExists DisplayName="[864447697] Path Exists" Exists="[isFileDownloaded]"
sap:VirtualizedContainerService.HintSize="314,89" Path="[tempTheKhoFilePath]"
PathType="File" />

<rac:LogMessage DisplayName="[864449702] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info" Message="[&quot;File
downloaded: &quot; + isFileDownloaded.ToString]" />

<Delay DisplayName="[864451717] Delay" Duration="00:00:01"


sap:VirtualizedContainerService.HintSize="314,22" />

</Sequence>

</DoWhile>

<rac:MoveFile ContinueOnError="{x:Null}" Destination="[theKhoFolderPath]"


DisplayName="[864453701] Move File"
sap:VirtualizedContainerService.HintSize="314,22" Overwrite="True"
Path="[tempTheKhoFilePath]" />

<Assign DisplayName="[864455727] Assign"


sap:VirtualizedContainerService.HintSize="314,60">

<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>

<rac:LogMessage DisplayName="[864457735] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info" Message="[&quot;Tải
file thành công&quot;]">

<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>

</rac:LogMessage>

<Assign DisplayName="[864459710] Assign"


sap:VirtualizedContainerService.HintSize="314,60">

<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>

<Sequence DisplayName="[864461691] Sequence"


sap:VirtualizedContainerService.HintSize="336,377">

<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="[864463709] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info" Message="[&quot;Có
lỗi khi thực hiện in thẻ kho&quot;]">

<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="[864465137] 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">[rowTheKho("MESSAGE").ToString.Trim + "Có


lỗi khi thực hiện in thẻ kho,"]</InArgument>

</Assign.Value>

</Assign>

<Throw DisplayName="[885212198] Throw" Exception="[new Exception(&quot;Có lỗi khi


thực hiện in thẻ kho&quot;)]" sap:VirtualizedContainerService.HintSize="314,22" />

</Sequence>

</If.Else>

</If>

</Sequence>

</If.Then>

<If.Else>

<Sequence DisplayName="[864466685] Process for already downloaded"


sap:VirtualizedContainerService.HintSize="336,415">

<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="[864468755] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info" Message="[&quot;Thẻ
kho này đã được tải trước đó&quot;]">

<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="[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 DisplayName="[864472704] Assign"


sap:VirtualizedContainerService.HintSize="314,60">

<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>

<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>
</rac:ForEach>
</Sequence>
</FlowStep>

</FlowDecision.True>

<FlowDecision.False>
<FlowStep
x:Name="__ReferenceID1">

<sap:WorkflowViewStateService.ViewState>

<scg:Dictionary x:TypeArguments="x:String, x:Object">


<av:Point
x:Key="ShapeLocation">420,334.5</av:Point>
<av:Size
x:Key="ShapeSize">200,51</av:Size>

</scg:Dictionary>

</sap:WorkflowViewStateService.ViewState>
<Sequence
DisplayName="[864474695] Có lỗi" sap:VirtualizedContainerService.HintSize="200,51">

<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="[864476686] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info" Message="[&quot;Có
lỗi khi call API search thẻ kho hoặc không tìm thấy bản ghi nào&quot;]">

<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>
<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="[&quot;Thực hiện tìm kiếm thông tin thẻ kho&quot;]">

<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
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(&quot;ENV&quot;).ToString.Trim = &quot;DEV&quot;]"
DisplayName="[570197671] If vendorCode"
sap:VirtualizedContainerService.HintSize="1835,51">

<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="[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="[&quot;***Call GET: &quot; + urlSearchTheKho]">

<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: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>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Attachments>

<rac:HttpClient.Cookies>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</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>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Parameters>

<rac:HttpClient.UrlSegments>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</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="[&quot;Status code response: &quot; + statusSearchTheKho.ToString]">

<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>
</rac:LogMessage>
<If
Condition="[statusSearchTheKho = 200]" DisplayName="[570226685] If"
sap:VirtualizedContainerService.HintSize="1835,5112">

<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>
<Sequence
DisplayName="[570870725] Sequence"
sap:VirtualizedContainerService.HintSize="1474,4964">

<Sequence.Variables>
<Variable
x:TypeArguments="njl:JObject" Name="jsonSearch" />

</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>

<rac:LogMessage DisplayName="[570872699] Log Message"


sap:VirtualizedContainerService.HintSize="1452,91" Level="Info"
Message="[&quot;Call API search thẻ kho thành công&quot;]">

<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
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(&quot;length&quot;).ToString) &gt;
0]" DisplayName="[570876689] If"
sap:VirtualizedContainerService.HintSize="1452,4609">

<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="[571172689] Sequence"
sap:VirtualizedContainerService.HintSize="336,283">

<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="[571174710] 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>

<rac:DeserializeJsonArray DisplayName="[571176693] Deserialize Json Array"


sap:VirtualizedContainerService.HintSize="314,59" JsonArray="[jArrTheKho]"
JsonString="[jsonSearch.SelectToken(&quot;data&quot;).ToString]">

<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:DeserializeJsonArray>

</Sequence>

</If.Then>
<If.Else>

<Sequence DisplayName="[571178690] Sequence"


sap:VirtualizedContainerService.HintSize="1091,4461">

<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:LogMessage DisplayName="[571180693] Log Message"


sap:VirtualizedContainerService.HintSize="1069,91" Level="Info"
Message="[&quot;Không tìm thấy thẻ kho nào&quot;]">

<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>

</rac:LogMessage>
<If
Condition="[vendorCode.Contains(&quot;-&quot;)]" DisplayName="[571182681] If call
API search thẻ kho remove -" sap:VirtualizedContainerService.HintSize="1069,2123">

<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="[571254672] Call API search thẻ kho remove -"


sap:VirtualizedContainerService.HintSize="944,1975">

<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:LogMessage DisplayName="[571256678] Log Message"
sap:VirtualizedContainerService.HintSize="922,91" Level="Info" Message="[&quot;Call
API search thẻ kho remove -&quot;]">

<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 DisplayName="[571258679] Assign"


sap:VirtualizedContainerService.HintSize="922,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="[571260673] Assign"


sap:VirtualizedContainerService.HintSize="922,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="[571262673] Assign"


sap:VirtualizedContainerService.HintSize="922,60">

<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 DisplayName="[571264673] Assign"


sap:VirtualizedContainerService.HintSize="922,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="[571266673] Log Message"


sap:VirtualizedContainerService.HintSize="922,91" Level="Info"
Message="[&quot;***Call GET: &quot; + urlSearchTheKho]">

<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: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="[571268671] Http Client" EndPoint="[urlSearchTheKho]"
sap:VirtualizedContainerService.HintSize="922,22" Method="GET"
Result="[jsonSearchTheKho]" StatusCode="[statusSearchTheKho]" TimeoutMS="60000">

<rac:HttpClient.Attachments>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />


</rac:HttpClient.Attachments>

<rac:HttpClient.Cookies>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</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>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Parameters>

<rac:HttpClient.UrlSegments>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.UrlSegments>

</rac:HttpClient>

<Delay DisplayName="[571279672] Delay" Duration="00:00:02"


sap:VirtualizedContainerService.HintSize="922,22" />

<rac:LogMessage DisplayName="[571281672] Log Message"


sap:VirtualizedContainerService.HintSize="922,91" Level="Info"
Message="[&quot;Status code response: &quot; + statusSearchTheKho.ToString]">

<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>

</rac:LogMessage>

<If Condition="[statusSearchTheKho = 200]" DisplayName="[571283670] If"


sap:VirtualizedContainerService.HintSize="922,934">

<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="[571309679] Sequence"


sap:VirtualizedContainerService.HintSize="697,786">

<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:LogMessage DisplayName="[571311673] Log Message"


sap:VirtualizedContainerService.HintSize="675,91" Level="Info" Message="[&quot;Call
API search thẻ kho remove - thành công&quot;]">

<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 DisplayName="[571313673] Assign"


sap:VirtualizedContainerService.HintSize="675,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(&quot;length&quot;).ToString)
&gt; 0]" DisplayName="[571315674] If"
sap:VirtualizedContainerService.HintSize="675,431">

<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>

<Sequence DisplayName="[571325686] Sequence"


sap:VirtualizedContainerService.HintSize="336,283">

<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="[571327700] 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>

<rac:DeserializeJsonArray DisplayName="[571329688] Deserialize Json Array"


sap:VirtualizedContainerService.HintSize="314,59" JsonArray="[jArrTheKho]"
JsonString="[jsonSearch.SelectToken(&quot;data&quot;).ToString]">

<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:DeserializeJsonArray>

</Sequence>

</If.Then>

<If.Else>

<rac:LogMessage DisplayName="[571331698] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info"
Message="[&quot;Không tìm thấy thẻ kho nào sau khi call API search thẻ kho remove -
&quot;]">

<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>

</Sequence>

</If.Then>

<If.Else>

<Throw DisplayName="[446846165] Throw" Exception="[new Exception(&quot;Có lỗi khi


call API search thẻ kho&quot;)]"
sap:VirtualizedContainerService.HintSize="200,22" />

</If.Else>

</If>

</Sequence>

</If.Then>
</If>
<If
Condition="[isSearchTheKhoOk = False And taxCodeInXml &lt;&gt; &quot;&quot;]"
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>

<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:LogMessage DisplayName="[571407682] Log Message"


sap:VirtualizedContainerService.HintSize="922,51" Level="Info" Message="[&quot;Call
API search thẻ kho theo MST hóa đơn&quot;]">

<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 DisplayName="[571409693] Assign"


sap:VirtualizedContainerService.HintSize="922,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="[571411689] Assign"


sap:VirtualizedContainerService.HintSize="922,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="[571413697] Assign"


sap:VirtualizedContainerService.HintSize="922,60">

<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 DisplayName="[571415715] Assign"


sap:VirtualizedContainerService.HintSize="922,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="[571417701] Log Message"


sap:VirtualizedContainerService.HintSize="922,51" Level="Info"
Message="[&quot;***Call GET: &quot; + urlSearchTheKho]">

<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: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="[571419698] Http Client" EndPoint="[urlSearchTheKho]"
sap:VirtualizedContainerService.HintSize="922,22" Method="GET"
Result="[jsonSearchTheKho]" StatusCode="[statusSearchTheKho]" TimeoutMS="60000">

<rac:HttpClient.Attachments>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Attachments>

<rac:HttpClient.Cookies>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</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>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.Parameters>

<rac:HttpClient.UrlSegments>

<scg:Dictionary x:TypeArguments="x:String, InArgument(x:String)" />

</rac:HttpClient.UrlSegments>

</rac:HttpClient>
<Delay DisplayName="[571421694] Delay" Duration="00:00:02"
sap:VirtualizedContainerService.HintSize="922,22" />

<rac:LogMessage DisplayName="[571423702] Log Message"


sap:VirtualizedContainerService.HintSize="922,91" Level="Info"
Message="[&quot;Status code response: &quot; + statusSearchTheKho.ToString]">

<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>

</rac:LogMessage>

<If Condition="[statusSearchTheKho = 200]" DisplayName="[571425723] If"


sap:VirtualizedContainerService.HintSize="922,934">

<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="[571451701] Sequence"


sap:VirtualizedContainerService.HintSize="697,786">

<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:LogMessage DisplayName="[571453687] Log Message"


sap:VirtualizedContainerService.HintSize="675,91" Level="Info" Message="[&quot;Call
API search thẻ kho theo MST hóa đơn thành công&quot;]">

<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 DisplayName="[571455684] Assign"


sap:VirtualizedContainerService.HintSize="675,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(&quot;length&quot;).ToString)
&gt; 0]" DisplayName="[571457696] If"
sap:VirtualizedContainerService.HintSize="675,431">

<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>

<Sequence DisplayName="[571467694] Sequence"


sap:VirtualizedContainerService.HintSize="336,283">

<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="[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>

<rac:DeserializeJsonArray DisplayName="[571471711] Deserialize Json Array"


sap:VirtualizedContainerService.HintSize="314,59" JsonArray="[jArrTheKho]"
JsonString="[jsonSearch.SelectToken(&quot;data&quot;).ToString]">

<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:DeserializeJsonArray>

</Sequence>

</If.Then>

<If.Else>

<rac:LogMessage DisplayName="[571473704] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info"
Message="[&quot;Không tìm thấy thẻ kho nào sau khi call API thẻ kho theo MST hóa
đơn&quot;]">

<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>

</Sequence>

</If.Then>

<If.Else>

<Throw DisplayName="[489444228] Throw" Exception="[new Exception(&quot;Có lỗi khi


call API search thẻ kho&quot;)]"
sap:VirtualizedContainerService.HintSize="200,22" />

</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>

<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:LogMessage DisplayName="[571477706] Log Message"


sap:VirtualizedContainerService.HintSize="314,91" Level="Info" Message="[&quot;Có
lỗi khi call API search thẻ kho&quot;]">

<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>
<Throw
DisplayName="[212752187] Throw" Exception="[new Exception(&quot;Có lỗi khi call API
search thẻ kho&quot;)]" sap:VirtualizedContainerService.HintSize="314,22" />
</Sequence>
</If.Else>
</If>
</Sequence>
<FlowStep.Next>

<x:Reference>__ReferenceID2</x:Reference>
</FlowStep.Next>
</FlowStep>
</Flowchart>
<If
Condition="[rowTheKho(&quot;MESSAGE&quot;).ToString.Trim = &quot;&quot;]"
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 &lt;T&gt;" 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(&quot;MESSAGE&quot;).ToString.Trim &lt;&gt; &quot;&quot;]"
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 &lt;&gt; &quot;&quot;]"
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="[&quot;YCMH
không có thông tin kho nhận, bỏ qua bước tải thẻ kho&quot;]">

<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&#xA;" Condition="[ycmh(&quot;IS_VIA_INVENTORY&quot;).ToString.Trim =
&quot;N&quot; And ycmh(&quot;ERROR&quot;).ToString.Trim &lt;&gt; &quot;Y&quot;]"
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="[&quot;++++++++++ ERROR: &quot; + ex.ToString]" />
<rac:LogMessage DisplayName="[530309171] Log
Message" sap:VirtualizedContainerService.HintSize="314,91" Level="Error"
Message="[&quot;++++++++++ ELEMENT_CAUSED_ERROR: &quot; + 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="[&quot;iSuccess: &quot; + 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="[&quot;++++++++++ Mark &quot; + 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="[&quot;++++
++++++ Missing Insight's token&quot;]">
<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="[&quot;++++
++++++ Ran&quot;]" />
</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="[&quot;++++
++++++ Required previous step has not to be OK yet&quot;]">
<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="[&quot;++++
++++++ No Data To Run&quot;]" />
<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="[&quot;=============== STEP 4: PrintBOL.xaml ===============&quot;]">
<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>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy