-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProcess.xaml
266 lines (266 loc) · 20.1 KB
/
Process.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
<Activity mc:Ignorable="sap sap2010" x:Class="ProcessTransaction" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" 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:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="in_Config" Type="InArgument(scg:Dictionary(x:String, x:Object))" />
<x:Property Name="in_CrunchbaseBrowser" Type="InArgument(ui:Browser)" />
<x:Property Name="in_TransactionItem" Type="InArgument(sd:DataRow)" />
<x:Property Name="in_TransactionStructure" Type="InArgument(sd:DataTable)" />
<x:Property Name="out_TableWebTraffic" Type="OutArgument(sd:DataTable)" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>668,2716</sap:VirtualizedContainerService.HintSize>
<sap2010:WorkflowViewState.IdRef>ProcessTransaction_1</sap2010:WorkflowViewState.IdRef>
<TextExpression.NamespacesForImplementation>
<scg:List x:TypeArguments="x:String" Capacity="25">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Drawing</x:String>
<x:String>System.IO</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>Microsoft.VisualBasic.CompilerServices</x:String>
<x:String>UiPath.Excel</x:String>
<x:String>System.Xml.Serialization</x:String>
<x:String>System.Text</x:String>
</scg:List>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<scg:List x:TypeArguments="AssemblyReference" Capacity="24">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>Microsoft.VisualStudio.Services.Common</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
<AssemblyReference>UiPath.Mail</AssemblyReference>
<AssemblyReference>System.ValueTuple</AssemblyReference>
<AssemblyReference>UiPath.Studio.Plugin.Workflow</AssemblyReference>
<AssemblyReference>System.Runtime.WindowsRuntime</AssemblyReference>
</scg:List>
</TextExpression.ReferencesForImplementation>
<Sequence sap2010:Annotation.AnnotationText="Description: In this file all other process specific files will be invoked. If an application exception occurs, the current transaction can be retried. If a BRE is thrown, the transaction will be skipped. Can be a flowchart or sequence. " DisplayName="ProcessTransaction" sap:VirtualizedContainerService.HintSize="648,2656" sap2010:WorkflowViewState.IdRef="Sequence_1">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<TryCatch DisplayName="Catch process exceptions" sap:VirtualizedContainerService.HintSize="606,2522" sap2010:WorkflowViewState.IdRef="TryCatch_1">
<TryCatch.Try>
<Sequence DisplayName="Capture Web Traffic" sap:VirtualizedContainerService.HintSize="568,2295" sap2010:WorkflowViewState.IdRef="Sequence_10">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="MonthlyVisitsGrowth" />
<Variable x:TypeArguments="x:String" Name="MonthlyVisits" />
</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="Assign Table Structure " sap:VirtualizedContainerService.HintSize="526,60" sap2010:WorkflowViewState.IdRef="Assign_6">
<Assign.To>
<OutArgument x:TypeArguments="sd:DataTable">[out_TableWebTraffic]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="sd:DataTable">[in_TransactionStructure.Clone]</InArgument>
</Assign.Value>
</Assign>
<Sequence DisplayName="Navigate to Web Traffic page and Capture Data" sap:VirtualizedContainerService.HintSize="526,1023" sap2010:WorkflowViewState.IdRef="Sequence_6">
<Sequence.Variables>
<Variable x:TypeArguments="ui:Browser" Name="CrunchbaseBrowser" />
<Variable x:TypeArguments="ui:Browser" Name="WebTrafficBrowser" />
</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>
<ui:BrowserScope SearchScope="{x:Null}" Selector="{x:Null}" Browser="[in_CrunchbaseBrowser]" BrowserType="Chrome" DisplayName="Attach Crunchbase Browser" sap:VirtualizedContainerService.HintSize="452,259" sap2010:WorkflowViewState.IdRef="BrowserScope_3" TimeoutMS="[cint(in_Config("TimeoutMedium").ToString)]" UiBrowser="[CrunchbaseBrowser]">
<ui:BrowserScope.Body>
<ActivityAction x:TypeArguments="x:Object">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="ContextTarget" />
</ActivityAction.Argument>
<Sequence DisplayName="Navigate to Web Traffic Page" sap:VirtualizedContainerService.HintSize="376,151" sap2010:WorkflowViewState.IdRef="Sequence_5">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:NavigateTo Browser="[CrunchbaseBrowser]" DisplayName="Navigate To Web Traffic URL" sap:VirtualizedContainerService.HintSize="334,59" sap2010:WorkflowViewState.IdRef="NavigateTo_1" Url="[in_TransactionItem("URL").ToString + in_Config("URL_Section").ToString]" />
</Sequence>
</ActivityAction>
</ui:BrowserScope.Body>
</ui:BrowserScope>
<ui:BrowserScope Browser="{x:Null}" SearchScope="{x:Null}" BrowserType="Chrome" DisplayName="Attach Web Traffic Browser" sap:VirtualizedContainerService.HintSize="452,632" sap2010:WorkflowViewState.IdRef="BrowserScope_4" Selector="["<html app='chrome.exe' title='*Crunchbase*' url='" + in_TransactionItem("URL").ToString + "*' />"]" TimeoutMS="[cint(in_Config("TimeoutMedium").ToString)]" UiBrowser="[WebTrafficBrowser]">
<ui:BrowserScope.Body>
<ActivityAction x:TypeArguments="x:Object">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="ContextTarget" />
</ActivityAction.Argument>
<Sequence DisplayName="Do" sap:VirtualizedContainerService.HintSize="418,524" sap2010:WorkflowViewState.IdRef="Sequence_12">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="Capture Web Traffic Data" sap:VirtualizedContainerService.HintSize="376,432" sap2010:WorkflowViewState.IdRef="Sequence_7">
<Sequence.Variables>
<Variable x:TypeArguments="sd:DataTable" Name="TableWebTraffic" />
</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:GetAttribute Attribute="innertext" ContinueOnError="True" DisplayName="Get Monthly Visits" sap:VirtualizedContainerService.HintSize="334,96" sap2010:WorkflowViewState.IdRef="GetAttribute_1">
<ui:GetAttribute.Result>
<OutArgument x:TypeArguments="x:String">[MonthlyVisits]</OutArgument>
</ui:GetAttribute.Result>
<ui:GetAttribute.Target>
<ui:Target ClippingRegion="{x:Null}" Element="{x:Null}" Selector="<webctrl idx='1' parentid='section-traffic' tag='FIELD-FORMATTER' />" TimeoutMS="[cint(in_Config("TimeoutShort").ToString)]" WaitForReady="COMPLETE" />
</ui:GetAttribute.Target>
</ui:GetAttribute>
<ui:GetAttribute Attribute="innertext" ContinueOnError="True" DisplayName="Get Monthly Visits Growth" sap:VirtualizedContainerService.HintSize="334,96" sap2010:WorkflowViewState.IdRef="GetAttribute_5">
<ui:GetAttribute.Result>
<OutArgument x:TypeArguments="x:String">[MonthlyVisitsGrowth]</OutArgument>
</ui:GetAttribute.Result>
<ui:GetAttribute.Target>
<ui:Target ClippingRegion="{x:Null}" Element="{x:Null}" Selector="<webctrl idx='2' parentid='section-traffic' tag='FIELD-FORMATTER' />" TimeoutMS="[cint(in_Config("TimeoutShort").ToString)]" WaitForReady="COMPLETE" />
</ui:GetAttribute.Target>
</ui:GetAttribute>
<ui:ExtractData DelayBetweenPagesMS="{x:Null}" NextLinkSelector="{x:Null}" ContinueOnError="True" DataTable="[out_TableWebTraffic]" DisplayName="Extract Web Traffic Table" ExtractMetadata="<extract><row exact='1'><webctrl tag='tr' class='ng-star-inserted'/></row><column exact='1' name='Country' attr='text'><webctrl tag='tr' class='ng-star-inserted'/><webctrl tag='td' class='ng-star-inserted' idx='1'/></column><column exact='1' name='Share of Monthly Visits' attr='text'><webctrl tag='tr' class='ng-star-inserted'/><webctrl tag='td' class='ng-star-inserted' idx='2'/></column><column exact='1' name='Monthly Visits Growth Country' attr='text'><webctrl tag='tr' class='ng-star-inserted'/><webctrl tag='td' class='ng-star-inserted' idx='3'/></column><column exact='1' name='Site&apos;s Rank in Country' attr='text'><webctrl tag='tr' class='ng-star-inserted'/><webctrl tag='td' class='ng-star-inserted' idx='4'/></column><column exact='1' name='Monthly Rank Growth' attr='text'><webctrl tag='tr' class='ng-star-inserted'/><webctrl tag='td' class='ng-star-inserted' idx='5'/></column></extract>" sap:VirtualizedContainerService.HintSize="334,68" sap2010:WorkflowViewState.IdRef="ExtractData_3" MaxNumberOfResults="0" SimulateClick="True">
<ui:ExtractData.Target>
<ui:Target ClippingRegion="{x:Null}" Element="{x:Null}" Selector="<webctrl parentid='section-traffic' tag='TBODY' />" TimeoutMS="[cint(in_Config("TimeoutShort").ToString)]" WaitForReady="COMPLETE" />
</ui:ExtractData.Target>
</ui:ExtractData>
</Sequence>
</Sequence>
</ActivityAction>
</ui:BrowserScope.Body>
</ui:BrowserScope>
</Sequence>
<Sequence DisplayName="Update Table Web Traffic Data" sap:VirtualizedContainerService.HintSize="526,1040" sap2010:WorkflowViewState.IdRef="Sequence_9">
<Sequence.Variables>
<Variable x:TypeArguments="sd:DataRow" Name="NewRow" />
</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>
<If Condition="[out_TableWebTraffic.Rows.Count = 0]" DisplayName="If Table exists" sap:VirtualizedContainerService.HintSize="484,208" sap2010:WorkflowViewState.IdRef="If_1">
<If.Then>
<Throw DisplayName="Throw Table not found" Exception="[new BusinessRuleException("Tabela não encontrada para a startup: " + in_TransactionItem("Name Startup").ToString)]" sap:VirtualizedContainerService.HintSize="200,22" sap2010:WorkflowViewState.IdRef="Throw_2" />
</If.Then>
</If>
<ui:ForEachRow CurrentIndex="{x:Null}" DataTable="[out_TableWebTraffic]" DisplayName="For Each Row" sap:VirtualizedContainerService.HintSize="484,700" sap2010:WorkflowViewState.IdRef="ForEachRow_1">
<ui:ForEachRow.Body>
<ActivityAction x:TypeArguments="sd:DataRow">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="sd:DataRow" Name="row" />
</ActivityAction.Argument>
<Sequence DisplayName="Body" sap:VirtualizedContainerService.HintSize="304,552" sap2010:WorkflowViewState.IdRef="Sequence_17">
<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="Assign Name Startup" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_10">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[row("Name Startup")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[in_TransactionItem("Name Startup")]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign Monthly Visits" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[row("Monthly Visits")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[MonthlyVisits]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign Monthly Visits Growth" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_7">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[row("Monthly Visits Growth")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[MonthlyVisitsGrowth]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign Capture Date" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_3">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[row("Data e hora da Captura")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[Now.ToString("dd/MM/yyyy HH:mm:ss")]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign URL" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_4">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[row("URL")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[in_TransactionItem("URL").ToString + in_Config("URL_Section").ToString]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</ActivityAction>
</ui:ForEachRow.Body>
</ui:ForEachRow>
</Sequence>
</Sequence>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="572,21" sap2010:WorkflowViewState.IdRef="Catch`1_1">
<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>
<Throw Exception="[exception]" sap:VirtualizedContainerService.HintSize="200,22" sap2010:WorkflowViewState.IdRef="Throw_1" />
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
</Sequence>
</Activity>