-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main_modern.xaml
303 lines (303 loc) · 36.7 KB
/
Main_modern.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<Activity mc:Ignorable="sap sap2010" x:Class="Main" VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="1116,3611" sap2010:WorkflowViewState.IdRef="Main_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:s="clr-namespace:System;assembly=System.Private.CoreLib" 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=System.Private.CoreLib" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=System.Private.CoreLib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data.Common" xmlns:si="clr-namespace:System.IO;assembly=System.Private.CoreLib" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:uix="http://schemas.uipath.com/workflow/activities/uix" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<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>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Collections.ObjectModel</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Drawing</x:String>
<x:String>System.IO</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>GlobalVariablesNamespace</x:String>
<x:String>GlobalConstantsNamespace</x:String>
<x:String>UiPath.UIAutomationNext.Enums</x:String>
<x:String>UiPath.UIAutomationCore.Contracts</x:String>
<x:String>UiPath.UIAutomationNext.Activities</x:String>
<x:String>UiPath.Platform.ObjectLibrary</x:String>
<x:String>UiPath.Shared.Activities</x:String>
<x:String>UiPath.UIAutomationNext.Activities.Models</x:String>
<x:String>System.ComponentModel</x:String>
<x:String>UiPath.Platform.ResourceHandling</x:String>
<x:String>System.Runtime.Serialization</x:String>
<x:String>UiPath.Shared.Activities.Business</x:String>
<x:String>System.Xml.Serialization</x:String>
<x:String>System.Reflection</x:String>
<x:String>System.Activities.Runtime.Collections</x:String>
<x:String>UiPath.UIAutomationNext.Contracts</x:String>
<x:String>UiPath.UIAutomationNext.Models.CV</x:String>
<x:String>UiPath.Excel</x:String>
<x:String>UiPath.Excel.Activities.Business</x:String>
<x:String>UiPath.Excel.Model</x:String>
<x:String>UiPath.Excel.Activities</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>System.ComponentModel.TypeConverter</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System.Data.Common</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Drawing.Common</AssemblyReference>
<AssemblyReference>System.Drawing.Primitives</AssemblyReference>
<AssemblyReference>System.Linq</AssemblyReference>
<AssemblyReference>System.ObjectModel</AssemblyReference>
<AssemblyReference>System.Private.CoreLib</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>UiPath.Studio.Constants</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationNext</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationCore</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationNext.Activities</AssemblyReference>
<AssemblyReference>UiPath.Platform</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities</AssemblyReference>
<AssemblyReference>UiPath.Mail.Activities</AssemblyReference>
<AssemblyReference>UiPath.Testing.Activities</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities</AssemblyReference>
<AssemblyReference>NPOI</AssemblyReference>
<AssemblyReference>System.Memory.Data</AssemblyReference>
<AssemblyReference>System.Console</AssemblyReference>
<AssemblyReference>System.Configuration.ConfigurationManager</AssemblyReference>
<AssemblyReference>System.Security.Permissions</AssemblyReference>
<AssemblyReference>System.ComponentModel</AssemblyReference>
<AssemblyReference>System.Memory</AssemblyReference>
<AssemblyReference>System.Private.Uri</AssemblyReference>
<AssemblyReference>System.ComponentModel.EventBasedAsync</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>Microsoft.Win32.Primitives</AssemblyReference>
<AssemblyReference>System.ComponentModel.Primitives</AssemblyReference>
<AssemblyReference>System.Private.ServiceModel</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization.Formatters</AssemblyReference>
<AssemblyReference>System.Private.DataContractSerialization</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization.Primitives</AssemblyReference>
<AssemblyReference>UiPath.Workflow</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.ViewModels</AssemblyReference>
<AssemblyReference>System.Private.Xml</AssemblyReference>
<AssemblyReference>System.Reflection.DispatchProxy</AssemblyReference>
<AssemblyReference>System.Reflection.TypeExtensions</AssemblyReference>
<AssemblyReference>System.Reflection.Metadata</AssemblyReference>
<AssemblyReference>System.Data.SqlClient</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="ShouldExpandAll">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="Main" sap:VirtualizedContainerService.HintSize="724,3546" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="sd:DataTable" Name="dt_InvData" />
<Variable x:TypeArguments="x:String" Name="varInvNum" />
<Variable x:TypeArguments="x:String" Name="varInvDateStr" />
<Variable x:TypeArguments="x:String" Name="varCustomer" />
<Variable x:TypeArguments="s:DateTime" Name="varInvDate" />
<Variable x:TypeArguments="x:String" Name="varTotalAmtStr" />
<Variable x:TypeArguments="x:Double" Name="varTotalAmt" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:BuildDataTable DataTable="[dt_InvData]" DisplayName="Build an empty dt_InvData" sap:VirtualizedContainerService.HintSize="682,60" sap2010:WorkflowViewState.IdRef="BuildDataTable_1" TableInfo="<NewDataSet>
 <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
 <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="TableName" msdata:UseCurrentLocale="true">
 <xs:complexType>
 <xs:choice minOccurs="0" maxOccurs="unbounded">
 <xs:element name="TableName">
 <xs:complexType>
 <xs:sequence>
 <xs:element name="Invoice_x0020_Number" msdata:Caption="" type="xs:string" minOccurs="0" />
 <xs:element name="Invoice_x0020_Date" msdata:Caption="" type="xs:dateTime" minOccurs="0" />
 <xs:element name="Customer_x0020_Name" msdata:Caption="" type="xs:string" minOccurs="0" />
 <xs:element name="Total_x0020_Amount" msdata:Caption="" type="xs:double" minOccurs="0" />
 <xs:element name="File_x0020_Name" msdata:Caption="" type="xs:string" minOccurs="0" />
 <xs:element name="Status" msdata:Caption="" type="xs:string" minOccurs="0" />
 <xs:element name="Error_x0020_Logs" msdata:Caption="" type="xs:string" minOccurs="0" />
 </xs:sequence>
 </xs:complexType>
 </xs:element>
 </xs:choice>
 </xs:complexType>
 </xs:element>
 </xs:schema>
</NewDataSet>" />
<ui:WriteRange AddHeaders="True" DataTable="[dt_InvData]" DisplayName="Create an Excel workbook named "Invoices_data_modern.xlsx"" sap:VirtualizedContainerService.HintSize="682,116" sap2010:WorkflowViewState.IdRef="WriteRange_1" SheetName="INV" StartingCell="A1" WorkbookPath="Invoices_data_modern.xlsx" />
<ui:ForEachFileX DisplayName="Iterate each invoice file in "Input" folder" Filter="*.pdf" Folder="./Input" sap:VirtualizedContainerService.HintSize="682,3202" sap2010:WorkflowViewState.IdRef="ForEachFileX_1" IncludeSubDirectories="False" OrderBy="LastUpdatedDateOldFirst" SkipFolderWithoutPermission="False">
<ui:ForEachFileX.Body>
<ActivityAction x:TypeArguments="si:FileInfo, x:Int32">
<ActivityAction.Argument1>
<DelegateInArgument x:TypeArguments="si:FileInfo" Name="CurrentFile" />
</ActivityAction.Argument1>
<ActivityAction.Argument2>
<DelegateInArgument x:TypeArguments="x:Int32" Name="CurrentIndex" />
</ActivityAction.Argument2>
<Sequence DisplayName="Do" sap:VirtualizedContainerService.HintSize="648,2944" sap2010:WorkflowViewState.IdRef="Sequence_3">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:LogMessage DisplayName="Log the name of the file being processed" sap:VirtualizedContainerService.HintSize="606,141" sap2010:WorkflowViewState.IdRef="LogMessage_1" Level="[UiPath.Core.Activities.LogLevel.Info]" Message="["Processing: " + CurrentFile.Name]" />
<TryCatch DisplayName="Try scrape data from the current invoice file" sap:VirtualizedContainerService.HintSize="606,2675" sap2010:WorkflowViewState.IdRef="TryCatch_2">
<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>
<TryCatch.Try>
<Sequence DisplayName="Scrape data from current invoice" sap:VirtualizedContainerService.HintSize="568,1196" sap2010:WorkflowViewState.IdRef="Sequence_9">
<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>
<uix:NApplicationCard AttachMode="SingleWindow" CloseMode="Always" DisplayName="Open the current invoice file in Adobe Acrobat" sap:VirtualizedContainerService.HintSize="526,683" sap2010:WorkflowViewState.IdRef="NApplicationCard_3" InteractionMode="Simulate" OpenMode="Always" ScopeGuid="c29dd184-fd01-4fbc-9a26-f8d0db113673" Version="V2" WindowResize="Maximize">
<uix:NApplicationCard.Body>
<ActivityAction x:TypeArguments="x:Object">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="WSSessionData" />
</ActivityAction.Argument>
<Sequence DisplayName="Do" sap:VirtualizedContainerService.HintSize="492,392" sap2010:WorkflowViewState.IdRef="Sequence_13">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<uix:NKeyboardShortcuts ActivateBefore="True" ClickBeforeMode="None" DisplayName="Zoom to fit the screen" sap:VirtualizedContainerService.HintSize="450,179" sap2010:WorkflowViewState.IdRef="NKeyboardShortcuts_2" InteractionMode="WindowMessages" Shortcuts="[d(hk)][d(ctrl)]0[u(ctrl)][u(hk)]" Version="V3" />
<Sequence DisplayName="Scrape data from the current invoice file" sap:VirtualizedContainerService.HintSize="450,81" sap2010:WorkflowViewState.IdRef="Sequence_12">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<uix:NGetText DisplayName="Extract Invoice Number" sap:VirtualizedContainerService.HintSize="434,157" sap2010:WorkflowViewState.IdRef="NGetText_14" ScopeIdentifier="c29dd184-fd01-4fbc-9a26-f8d0db113673" ScrapingOptions="None" TextString="[varInvNum]" Version="V3">
<uix:NGetText.Target>
<uix:TargetAnchorable DesignTimeRectangle="1278, 275, 31, 13" DesignTimeScaleFactor="1" ElementType="Text" FriendlyName="'19070'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='5' role='row' /><ctrl name='???????' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl role='text' automationid='' />" Guid="dbe46c82-758d-454e-ac72-788c4d8deb45" ImageBase64="" InformativeScreenshot="64ee9c7bf28a4b8aa4b16583411a7853.png" ScopeSelectorArgument="<wnd app='acrobat.exe' cls='AcrobatSDIWindow' title='Invoice 1.pdf - Adobe Acrobat Reader (64-bit)' />" SearchSteps="Selector, FuzzySelector" Version="V2" Visibility="Interactive">
<uix:TargetAnchorable.Anchors>
<scg:List x:TypeArguments="uix:ITarget" Capacity="1">
<uix:Target DesignTimeRectangle="1278, 258, 96, 13" ElementType="Text" FriendlyName="'Invoice Number'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='4' role='row' /><ctrl name='Invoice Number ' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl name='Invoice Number ' role='text' automationid='' check:text='Invoice Number' />" ImageBase64="iVBORw0KGgoAAAANSUhEUgAAAGQAAAARCAYAAAArDQkmAAAAAXNSR0IArs4c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e0SeMRNLWyZKEX/PvSPQr5IvHmBZNQdFQz+KwidWPwPJv+GyGOl9tUtovpMN/R0fIjqEjZMfQEbJj6AjZKQAPUOkkxy4uX/8AAAAASUVORK5CYII=" SearchSteps="Selector, FuzzySelector, Image" />
</scg:List>
</uix:TargetAnchorable.Anchors>
</uix:TargetAnchorable>
</uix:NGetText.Target>
</uix:NGetText>
<uix:NGetText DisplayName="Extract Invoice Date" sap:VirtualizedContainerService.HintSize="434,157" sap2010:WorkflowViewState.IdRef="NGetText_15" ScopeIdentifier="c29dd184-fd01-4fbc-9a26-f8d0db113673" TextString="[varInvDateStr]" Version="V3">
<uix:NGetText.Target>
<uix:TargetAnchorable DesignTimeRectangle="1278, 242, 58, 13" DesignTimeScaleFactor="1" ElementType="Text" FriendlyName="'12/28/2023'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='3' role='row' /><ctrl name='*/*/*' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl role='text' automationid='' />" Guid="88a7194c-947e-4765-b135-9a58da499d3a" ImageBase64="" InformativeScreenshot="ff7fa16c61afd5b29a72a7ddfbc5acf9.png" ScopeSelectorArgument="<wnd app='acrobat.exe' cls='AcrobatSDIWindow' title='Invoice 1.pdf - Adobe Acrobat Reader (64-bit)' />" SearchSteps="Selector, FuzzySelector" Version="V2" Visibility="Interactive">
<uix:TargetAnchorable.Anchors>
<scg:List x:TypeArguments="uix:ITarget" Capacity="1">
<uix:Target DesignTimeRectangle="1278, 225, 29, 13" ElementType="Text" FriendlyName="'Date'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='2' role='row' /><ctrl name='Date ' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl name='Date ' role='text' automationid='' check:text='Date' />" ImageBase64="iVBORw0KGgoAAAANSUhEUgAAACEAAAARCAYAAABTnsXCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAFeSURBVEhL7ZMtbsQwEIV9Dd+hbC8QFFK8NCB0uaWcIdKiUpPSyqikquQDRAqPzAqikAVVtGAVYL2Okzh/3SppVakF+6Qhk/H485sJwz/QDcJrgLBGImQM7FOEEPIZedX0lb+vmRMDSChhrMs0qPJHiICD8QNUuQ7S9hjOb9MKhJNFrRNwynOhUffZ67rAyP3i/Lo2QCzzE3dczo1LFTjjHXl6Pxmjh7Y4Gw0pwkX9qB9A9Ekn+wYV31HjPaS5gCyD4PM6WyrEnCNIM7q4d8rX9/oWRPeyGkbLiRMuvoLwl/o6HxyhLMijThsgGpTqQDuxg9CnEShWKO0JWuyo6RrE/NKlViBo/tkDImdn8oqKcnNX1iCovh0H5YIEylxf6wFiAFhGICC1GRfJVsiOUfe3RCmepEBAL+0gaxQybr8xHuGYVfR6t5gvSCO3O64n1QoJPQGaOfFXukF43SA6AR81zqnoeyimnAAAAABJRU5ErkJggg==" SearchSteps="Selector, FuzzySelector, Image" />
</scg:List>
</uix:TargetAnchorable.Anchors>
</uix:TargetAnchorable>
</uix:NGetText.Target>
</uix:NGetText>
<Assign DisplayName="Convert extracted Invoice Date to datetime format" sap:VirtualizedContainerService.HintSize="434,81" sap2010:WorkflowViewState.IdRef="Assign_7">
<Assign.To>
<OutArgument x:TypeArguments="s:DateTime">[varInvDate]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="s:DateTime">[CDate(varInvDateStr)]</InArgument>
</Assign.Value>
</Assign>
<uix:NGetText DisplayName="Extract Customer Name" sap:VirtualizedContainerService.HintSize="434,157" sap2010:WorkflowViewState.IdRef="NGetText_16" ScopeIdentifier="c29dd184-fd01-4fbc-9a26-f8d0db113673" TextString="[varCustomer]" Version="V3">
<uix:NGetText.Target>
<uix:TargetAnchorable DesignTimeRectangle="806, 360, 34, 12" DesignTimeScaleFactor="1" ElementType="Text" FriendlyName="'Leenti'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='7' role='row' /><ctrl name='*' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl role='text' automationid='' />" Guid="67f2c01c-f76d-459d-bf29-90927815dd3c" ImageBase64="" InformativeScreenshot="505ada4fdcb5ec6dcc0dd970edbe1005.png" ScopeSelectorArgument="<wnd app='acrobat.exe' cls='AcrobatSDIWindow' title='Invoice 1.pdf - Adobe Acrobat Reader (64-bit)' />" SearchSteps="Selector, FuzzySelector" Version="V2" Visibility="Interactive">
<uix:TargetAnchorable.Anchors>
<scg:List x:TypeArguments="uix:ITarget" Capacity="1">
<uix:Target DesignTimeRectangle="806, 343, 42, 12" ElementType="Text" FriendlyName="'Bill To'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='6' role='row' /><ctrl name='Bill To: ' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl name='Bill To: ' role='text' automationid='' check:text='Bill To:' />" ImageBase64="iVBORw0KGgoAAAANSUhEUgAAAC4AAAAQCAYAAABpyU3qAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAGOSURBVEhL7VUxasMwFNU1dIWSLRfw5KVLlywdXMgdIvAJMhhyA0PoGrKHgOhSKAHvweAxGEqGYjyEDuJViiVHdR3bCU0gkAcavvT1//PTk0xwoziTuEDGfVBCQEgfjH9W4q3OuxwK4mKN0KWyqWpsDeohWMbI90lbcNYHcUPEQsU7xOHAIlqNDcx8pXY5Bgjjnc7tjoPiJXldKF8hcKxYE6fDOTYnEVenM4ZfmyNr+mPwbF/wJBwnbhQ+qkhX4rJ0miDJFbm/e5K3Dy3EaWhRvA9v8o5UmI+wj7Y78QOO5QjkMUfIXN2DwmGviNLvYi2awKnsqSFu+88Fm64kcZVQPYF/JJ5xMEpKG4rNHEMZF/fJEH9EEH3pDU2Ki430n1KAwg3X8rsvRdzMmT4KbTZt9PjhyaOMI7sZ4qXipsnlrGKsQb0p1vISi3QJX75ohXWaPF7rb1UowDxKLZvoNTrCbDbSPxw1HvD88mTFdeQrNX4prC7nAoHX02s9eMEC8f4lavP4jeFO/Nq4E78ugB+oO9DUOZ6P4QAAAABJRU5ErkJggg==" SearchSteps="Selector, FuzzySelector, Image" />
</scg:List>
</uix:TargetAnchorable.Anchors>
</uix:TargetAnchorable>
</uix:NGetText.Target>
</uix:NGetText>
<uix:NGetText DisplayName="Extract Total Amount" sap:VirtualizedContainerService.HintSize="434,157" sap2010:WorkflowViewState.IdRef="NGetText_17" ScopeIdentifier="c29dd184-fd01-4fbc-9a26-f8d0db113673" TextString="[varTotalAmtStr]" Version="V3">
<uix:NGetText.Target>
<uix:TargetAnchorable DesignTimeRectangle="1288, 606, 28, 12" DesignTimeScaleFactor="1" ElementType="Text" FriendlyName="'2969'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' rowName='Total' /><ctrl name=' * ' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' rowName='Total' /><ctrl role='text' automationid='' />" Guid="3906eaf8-4f29-4a5b-a2f2-004e7e064d86" ImageBase64="" InformativeScreenshot="e769f0cf1e2c29ff68c6bde1855e1bfb.png" ScopeSelectorArgument="<wnd app='acrobat.exe' cls='AcrobatSDIWindow' title='Invoice *.pdf - Adobe Acrobat Reader (64-bit)' />" SearchSteps="Selector, FuzzySelector" Version="V2" Visibility="Interactive">
<uix:TargetAnchorable.Anchors>
<scg:List x:TypeArguments="uix:ITarget" Capacity="1">
<uix:Target DesignTimeRectangle="847, 606, 28, 12" ElementType="Text" FriendlyName="'Total'" FullSelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl idx='15' role='row' /><ctrl name='Total ' role='text' />" FuzzySelectorArgument="<wnd aaname='Document Pane' cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVPageView' /><ctrl role='row' /><ctrl name='Total ' role='text' automationid='' check:text='Total' />" ImageBase64="iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAF2SURBVEhL7ZOxasMwEIb1Gpq9ZusLePKSpUtWDV0yZK4hW7YMAr+Bl+56gYAeIEVkLVqDUaEdgskQgjF/JdmO4yQONIV0aH8w+E531uf/JIJf1v0AjAAjBISMIUxRJxuAQoEHbrHnCThU23O7PEQfwGAKmZc22ELxEAFX8GWuiQkY996jUqd4bOqvqRegNFitDNz2ZwCdtUvaQaejtv6aegE6OgFoZEGWCQOtx0JZgoX+gJEzhEfjCvgSGy0Qh7TORZjKrPqB2wE2NjcECWeQZm9hMshpZOMEaptfBvaq+5oR3gxQviGNaCdXKI6AhODq/aR+D6MEOBscXPk5QH1LzgFGSPUaMn5o13KJmDa2F3bP8XcBPv0HaSyR15mDlXQCkR2NIEqhyzUEC9p6v8nQOrOxQRfA3ZbIQ+9cpdcJQPWxM+ucthoL3hxCijB+gXLnwVqeiUmVpwx8scRr+nSI53PXMwB7nhwd1taFCw7cV/8Afx0A+AL1PQ0u1rJu/AAAAABJRU5ErkJggg==" SearchSteps="Selector, FuzzySelector, Image" />
</scg:List>
</uix:TargetAnchorable.Anchors>
</uix:TargetAnchorable>
</uix:NGetText.Target>
</uix:NGetText>
<Assign DisplayName="Convert extracted Total Amount to double format" sap:VirtualizedContainerService.HintSize="434,82" sap2010:WorkflowViewState.IdRef="Assign_8">
<Assign.To>
<OutArgument x:TypeArguments="x:Double">[varTotalAmt]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Double">[CDbl(varTotalAmtStr)]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</Sequence>
</ActivityAction>
</uix:NApplicationCard.Body>
<uix:NApplicationCard.TargetApp>
<uix:TargetApp Area="-9, -9, 1938, 1048" Arguments="[CurrentFile.FullName]" FilePath="C:\Program Files\Adobe\Acrobat DC\Acrobat\acrobat.exe" IconBase64="iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAUJSURBVFhH5Zh/TFZVGMdBSyxTjPghFeW0cpq0LF1SEZUx0kLWgpptTocmIAjjh0grxtogGDCGMn4M3pZikRosm9WIaghhq/FD1GACawVCvCAMkHvvOZf3fb90zkXbet/zmuC92dYfnz/u7nOf57NzzznPuddlenraBYADNpvNMET1nCEWtFpdrUcqNqlLXE4zphjQgVFGvrWixM9msTjWdIJQ0FJ6aCNLZlaXe4C8FgJlbySUuN1zJ2qHjQT4U+rlJrO8JktRwTL7ms4QCrIk36o+d0LZHweppwvSlSuQJGnujI3ZpKYGVXkvZYouv0dl+Y9b3n/nhiSdCVK6fhWks63ignPFbIaSlgDVY75F9VxwypKR9o+SzgRBN20UF9EBJf5tUHdXC6tTbTmY522zWh0crnFLBDnK/n2g3nfw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amRkBG1tbRi/gTY4N8HnN8x0DEFCXenpBg3wn7XgKH3EF/LHH0EaYJP7Zv8PiuA52blR/vwEVP65usRl3N6D40wwlp3zptS1y0H2RkIuLoRcUaIvpQehHEgACVgL9e75/C/Xu/YeHKGgpezQQtXL7QN6/5JhPvSG4nuXWfW8PZ/VdLf34AgF+b86a1vzIuu5s/7Wlp/XG0p721pWa/F1/w/+d5l2+ROBiPgPwy36dgAAAABJRU5ErkJggg==" InformativeScreenshot="51dccab3cbbc056999bd0f3ffda71efb.png" Selector="<wnd app='acrobat.exe' cls='AcrobatSDIWindow' title='Invoice *.pdf - Adobe Acrobat Reader (64-bit)' />" Title="Invoice 1.pdf - Adobe Acrobat Reader (64-bit)" />
</uix:NApplicationCard.TargetApp>
<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>
</uix:NApplicationCard>
<ui:AddDataRow DataRow="{x:Null}" ArrayRow="[New Object(){varInvNum, varInvDate, varCustomer, varTotalAmt, CurrentFile.name, "Success", ""}]" DataTable="[dt_InvData]" DisplayName="Add a data row to dt_InvData" sap:VirtualizedContainerService.HintSize="526,186" sap2010:WorkflowViewState.IdRef="AddDataRow_7" />
<ui:MoveFile ContinueOnError="{x:Null}" DestinationResource="{x:Null}" PathResource="{x:Null}" Destination="./Output/Successful" DisplayName="Move the current invoice file to "Successful" folder" sap:VirtualizedContainerService.HintSize="526,159" sap2010:WorkflowViewState.IdRef="MoveFile_5" Overwrite="True" Path="[CurrentFile.FullName]" />
</Sequence>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="572,723" sap2010:WorkflowViewState.IdRef="Catch`1_2">
<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="exception" />
</ActivityAction.Argument>
<Sequence sap:VirtualizedContainerService.HintSize="376,654" sap2010:WorkflowViewState.IdRef="Sequence_10">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:LogMessage DisplayName="Log error message" sap:VirtualizedContainerService.HintSize="334,141" sap2010:WorkflowViewState.IdRef="LogMessage_4" Level="[UiPath.Core.Activities.LogLevel.Error]" Message="[exception.Message]" />
<ui:AddDataRow DataRow="{x:Null}" ArrayRow="[New Object(){varInvNum, varInvDate, varCustomer, varTotalAmt, CurrentFile.name, "Failed", exception.Message}]" DataTable="[dt_InvData]" DisplayName="Add the failed record to dt_InvData" sap:VirtualizedContainerService.HintSize="334,186" sap2010:WorkflowViewState.IdRef="AddDataRow_5" />
<ui:MoveFile ContinueOnError="{x:Null}" DestinationResource="{x:Null}" PathResource="{x:Null}" Destination="./Output/Failed" DisplayName="Move the current invoice file to "Failed" folder" sap:VirtualizedContainerService.HintSize="334,159" sap2010:WorkflowViewState.IdRef="MoveFile_3" Overwrite="True" Path="[CurrentFile.FullName]" />
</Sequence>
</ActivityAction>
</Catch>
</TryCatch.Catches>
<TryCatch.Finally>
<Sequence sap:VirtualizedContainerService.HintSize="376,505" sap2010:WorkflowViewState.IdRef="Sequence_14">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:AppendRange DataTable="[dt_InvData]" DisplayName="Append a row to the Excel workbook" sap:VirtualizedContainerService.HintSize="334,116" sap2010:WorkflowViewState.IdRef="AppendRange_1" SheetName="INV" WorkbookPath="Invoices_data_modern.xlsx" />
<ui:ClearDataTable DataTable="[dt_InvData]" DisplayName="Clear dt_InvData" sap:VirtualizedContainerService.HintSize="334,80" sap2010:WorkflowViewState.IdRef="ClearDataTable_1" />
<ui:LogMessage DisplayName="Log extracted data" sap:VirtualizedContainerService.HintSize="334,141" sap2010:WorkflowViewState.IdRef="LogMessage_7" Level="[UiPath.Core.Activities.LogLevel.Info]" Message="["Invoice Number: " + varInvNum + Environment.NewLine +
"Invoice Date: " + varInvDate.ToString("dd/MM/yyyy") + Environment.NewLine +
"Customer Name: " + varCustomer + Environment.NewLine + 
"Total Amount: " + varTotalAmtStr]" />
</Sequence>
</TryCatch.Finally>
</TryCatch>
</Sequence>
</ActivityAction>
</ui:ForEachFileX.Body>
</ui:ForEachFileX>
</Sequence>
</Activity>