-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplayInputForm.xaml
324 lines (324 loc) · 34.1 KB
/
DisplayInputForm.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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<Activity mc:Ignorable="sap sap2010" x:Class="DisplayForm" 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:ufa="clr-namespace:UiPath.Form.Activities;assembly=UiPath.Form.Activities" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:uia="clr-namespace:UiPath.IPC.Activities;assembly=UiPath.IPC.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="io_dict_Config" Type="InOutArgument(scg:Dictionary(x:String, x:Object))" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>2598,2335</sap:VirtualizedContainerService.HintSize>
<sap2010:WorkflowViewState.IdRef>DisplayForm_1</sap2010:WorkflowViewState.IdRef>
<TextExpression.NamespacesForImplementation>
<scg:List x:TypeArguments="x:String" Capacity="88">
<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>System.Runtime.InteropServices</x:String>
<x:String>System.Reflection</x:String>
<x:String>System.Runtime.Serialization</x:String>
<x:String>System.ComponentModel</x:String>
<x:String>System.Xml.Serialization</x:String>
<x:String>System.Collections.ObjectModel</x:String>
<x:String>UiPath.Form.Activities</x:String>
<x:String>System.Activities.DynamicUpdate</x:String>
<x:String>UiPath.DataTableUtilities</x:String>
<x:String>UiPath.Excel</x:String>
<x:String>UiPath.Excel.Activities</x:String>
<x:String>Microsoft.VisualBasic.CompilerServices</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Newtonsoft.Json</x:String>
<x:String>System.Dynamic</x:String>
<x:String>System.Collections.Specialized</x:String>
<x:String>UiPath.Web.Activities</x:String>
<x:String>UiPath.Platform.Triggers</x:String>
<x:String>UiPath.IPC.Activities</x:String>
<x:String>UiPath.Platform.Triggers.Scope</x:String>
<x:String>UiPath.Core.Activities.Model</x:String>
<x:String>UiPath.Shared.Activities</x:String>
<x:String>System.Text.Json</x:String>
<x:String>UiPath.UIAutomationCore.Contracts</x:String>
<x:String>UiPath.Excel.Activities.Business</x:String>
</scg:List>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<scg:List x:TypeArguments="AssemblyReference" Capacity="80">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>System.Memory</AssemblyReference>
<AssemblyReference>System.Reflection.Metadata</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>Microsoft.Bcl.AsyncInterfaces</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization</AssemblyReference>
<AssemblyReference>UiPath.Form.Activities</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
<AssemblyReference>System.ValueTuple</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationCore</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>UiPath.Web.Activities</AssemblyReference>
<AssemblyReference>UiPath.Platform</AssemblyReference>
<AssemblyReference>UiPath.IPC.Activities</AssemblyReference>
<AssemblyReference>UiPath.Callout.Activity</AssemblyReference>
<AssemblyReference>UiPath.Mail.Activities</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities</AssemblyReference>
<AssemblyReference>UiPath.WPFInteractive.Activities</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.Design</AssemblyReference>
<AssemblyReference>System.Text.Json</AssemblyReference>
<AssemblyReference>NPOI</AssemblyReference>
</scg:List>
</TextExpression.ReferencesForImplementation>
<Sequence sap2010:Annotation.AnnotationText="This workflow displays the User Inputs Form. 

The form has all its components inside a single Container component. 
We pass our Config dictionary (via an object) to the Container component so that the form can be populated with the Config dictionary values and vice versa.

Based on the button pressed in the form, the automation will execute the process associated with that button and either 1) return execution to the form (Click button) or 2) proceed to the Results Form state (Submit button)." DisplayName="DisplayForm" sap:VirtualizedContainerService.HintSize="659,2270" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="str_selectedButton" />
<Variable x:TypeArguments="x:Object" Name="obj_container" />
</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="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign sap2010:Annotation.AnnotationText="Pass config dictionary into object variable to pass in/out of form Container" sap:VirtualizedContainerService.HintSize="597,112" sap2010:WorkflowViewState.IdRef="Assign_12">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[obj_container]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[io_dict_Config]</InArgument>
</Assign.Value>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</Assign>
<ufa:FormActivity CreateFormActivityFileName="{x:Null}" CreateFormActivityFilePath="{x:Null}" Dismissed="{x:Null}" FormFieldsInputData="{x:Null}" FormFieldsOutputData="{x:Null}" IconPath="{x:Null}" LocalCSSFilePath="{x:Null}" TimeoutInSeconds="{x:Null}" WindowPositionLeft="{x:Null}" WindowPositionTop="{x:Null}" CreateFormId="b774a24c-432c-42e9-a62a-90d64cfef72b" DisableMaximizeButton="False" DisableMinimizeButton="False" DisableSanitize="True" DisplayName="Create Form" FormHeight="684" FormSchema="%[{"tag":"h2","refreshOnChange":true,"content":"{{data.logF_BusinessProcessName}}","key":"logF_BusinessProcessName","input":false,"tableView":false,"label":"Label","type":"label"},{"refreshOnChange":true,"content":"{{data.automationDescription}}","key":"automationDescription","input":false,"tableView":false,"label":"Label","type":"label"},{"label":"Container","key":"container","type":"container","input":true,"tableView":false,"components":[{"label":"Table","cellAlignment":"left","key":"table1","type":"table","numRows":1,"numCols":18,"input":false,"tableView":false,"rows":[[{"components":[{"label":"View demo","action":"custom","theme":"secondary","tableView":false,"key":"viewDemo","custom":"instance.emit('executeDoBlock', instance.component);","isResetData":false,"showUpdateData":false,"input":true,"type":"button","allowMultipleClicksWhileDoBlock":false,"hideOnChildrenHidden":false}]},{"components":[{"label":"View user guide","action":"custom","theme":"secondary","tableView":false,"key":"viewUserGuide","custom":"instance.emit('executeDoBlock', instance.component);","input":true,"type":"button","isResetData":false,"showUpdateData":false,"allowMultipleClicksWhileDoBlock":false,"hideOnChildrenHidden":false}]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]}]]},{"label":"File type","labelPosition":"left-left","optionsLabelPosition":"right","inline":true,"tableView":false,"defaultValue":"file","values":[{"label":"File","value":"file","shortcut":""},{"label":"Folder","value":"folder","shortcut":""}],"validate":{"required":true},"key":"str_filetype","type":"radio","labelWidth":13,"input":true},{"collapsible":false,"hidden":true,"hideLabel":true,"key":"panel","conditional":{"show":true,"when":"str_filetype","eq":"folder"},"logic":[{"name":"hide","trigger":{"type":"simple","simple":{"show":true,"when":"str_filetype","eq":"file"}},"actions":[{"name":"hide","type":"property","property":{"label":"Hidden","value":"hidden","type":"boolean"},"state":true}]}],"type":"panel","label":"Panel","input":false,"tableView":false,"components":[{"label":"Folder containing Excel workbooks","customClass":"folderPath","showAllFileTypes":true,"validate":{"required":true},"key":"str_FolderPath","input":true,"suffix":"Select ","tableView":true,"type":"filePath"},{"label":"Include subfolders","tooltip":"Includes files in all subfolders as well","tableView":false,"defaultValue":false,"key":"includeSubfolders","type":"checkbox","input":true}]},{"collapsible":false,"hidden":true,"hideLabel":true,"key":"panel1","conditional":{"show":true,"when":"str_filetype","eq":"file"},"logic":[{"name":"hide","trigger":{"type":"simple","simple":{"show":true,"when":"str_filetype","eq":"folder"}},"actions":[{"name":"hide","type":"property","property":{"label":"Hidden","value":"hidden","type":"boolean"},"state":true}]}],"type":"panel","label":"Panel","input":false,"tableView":false,"components":[{"label":"Excel file","customClass":"filePath","showAllFileTypes":false,"validate":{"required":true},"key":"str_FilePath","input":true,"suffix":"Select ","tableView":true,"type":"filePath","filePathExtension":[{"displayName":"Excel Worksheets","value":"*.xls;*.xlsm;*.xlsx"}]}]},{"label":"Action","labelPosition":"left-left","optionsLabelPosition":"right","inline":true,"tableView":false,"defaultValue":"Protect","values":[{"label":"Password Protect","value":"Protect","shortcut":""},{"label":"Remove Password","value":"Unprotect","shortcut":""}],"validate":{"required":true},"key":"str_ChooseAction","type":"radio","labelWidth":10,"input":true},{"columns":[{"components":[{"label":"Password","labelPosition":"left-left","tooltip":"To protect the workbook or the required password to unprotect it.","tableView":false,"validate":{"required":true,"customMessage":"Please enter a minimum of 4 and not more than 12 characters"},"errorLabel":"Error Message","key":"str_Password","type":"password","labelWidth":20,"input":true,"protected":true}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6},{"components":[{"label":"Confirm password","labelPosition":"left-left","tooltip":"To protect the workbook or the required password to unprotect it.","tableView":false,"validate":{"required":true,"customMessage":"Please enter a minimum of 4 and not more than 12 characters"},"errorLabel":"Error Message","key":"str_ConfirmPassword","type":"password","labelWidth":20,"input":true,"protected":true}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6}],"autoAdjust":true,"key":"columns","type":"columns","input":false,"tableView":false,"label":"Columns"},{"label":"Output folder","customClass":"folderPath","showAllFileTypes":true,"key":"outputFolderPath","input":true,"suffix":"Select ","tableView":true,"type":"filePath"},{"label":"Table","cellAlignment":"right","key":"table","type":"table","numRows":1,"numCols":18,"input":false,"tableView":false,"rows":[[{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[{"label":"Cancel","action":"custom","theme":"secondary","tableView":false,"key":"cancel","properties":{"closeOnSubmit":"True"},"custom":"instance.emit('executeDoBlock', instance.component);","isResetData":false,"showUpdateData":false,"input":true,"type":"button","hideOnChildrenHidden":false,"allowMultipleClicksWhileDoBlock":false}]},{"components":[{"label":"Continue","tableView":false,"key":"continue","custom":"instance.emit('executeDoBlock', instance.component);","isResetData":false,"type":"button","input":true,"hideOnChildrenHidden":false,"saveOnEnter":false}]}]]}]}]" FormTheme="{}{"Activities":["FORMS"],"Id":"100120","Name":"Default","BaseCss":"../../assets/css/themes/uipath.bootstrap.min.css","ImageSrc":"../../assets/themeicons/uipath.png","OverrideCssUrl":"../../assets/css/themes/uipath.custom.css","UserStyleOverrides":"","Properties":"","IsCustomTheme":false,"Version":1,"ThemeVersion":1}" FormTitle="UiPath Ready-to-go Automation" FormWidth="1009" GenerateInputFields="False" sap:VirtualizedContainerService.HintSize="597,1304" sap2010:WorkflowViewState.IdRef="FormActivity_1" IsReadOnly="False" MaxColumnsForSchemaGeneration="6" RunDoBlockFirst="False" RunInIsolatedMode="False" SelectedButton="[str_selectedButton]" StartAsMinimized="False">
<ufa:FormActivity.Body>
<ActivityAction x:TypeArguments="scg:Dictionary(x:String, x:Object)">
<Sequence sap:VirtualizedContainerService.HintSize="559,1168" sap2010:WorkflowViewState.IdRef="Sequence_16">
<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>
<Sequence sap2010:Annotation.AnnotationText="Once the user completes the form and presses a button, update the Config dictionary with new information from the Container. We have to append info to the Config dictionary instead of overwriting it because if you hid previous components, those field keys may be erased from the Config." DisplayName="Update Config with new info from Form" sap:VirtualizedContainerService.HintSize="497,507" sap2010:WorkflowViewState.IdRef="Sequence_26">
<Sequence.Variables>
<Variable x:TypeArguments="scg:Dictionary(x:String, x:Object)" Name="dict_objContainer" />
</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="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:DeserializeJson x:TypeArguments="scg:Dictionary(x:String, x:Object)" DisplayName="Deserialize JSON" sap:VirtualizedContainerService.HintSize="434,69" sap2010:WorkflowViewState.IdRef="DeserializeJson`1_3" JsonObject="[dict_objContainer]" JsonString="[jsonconvert.SerializeObject(obj_container)]" />
<ui:ForEach x:TypeArguments="scg:KeyValuePair(x:String, x:Object)" CurrentIndex="{x:Null}" DisplayName="For Each" sap:VirtualizedContainerService.HintSize="434,204" sap2010:WorkflowViewState.IdRef="ForEach`1_1" Values="[dict_objContainer]">
<ui:ForEach.Body>
<ActivityAction x:TypeArguments="scg:KeyValuePair(x:String, x:Object)">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="scg:KeyValuePair(x:String, x:Object)" Name="pair" />
</ActivityAction.Argument>
<Assign sap:VirtualizedContainerService.HintSize="262,70" sap2010:WorkflowViewState.IdRef="Assign_16">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_dict_Config(pair.Key)]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[pair.Value]</InArgument>
</Assign.Value>
</Assign>
</ActivityAction>
</ui:ForEach.Body>
</ui:ForEach>
</Sequence>
<Assign DisplayName="Assign - Add button pressed to Config" sap:VirtualizedContainerService.HintSize="497,70" sap2010:WorkflowViewState.IdRef="Assign_14">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_dict_Config("selectedButton")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[str_selectedButton]</InArgument>
</Assign.Value>
</Assign>
<Switch x:TypeArguments="x:String" DisplayName="Switch" Expression="[str_selectedButton]" sap:VirtualizedContainerService.HintSize="497,192" sap2010:WorkflowViewState.IdRef="Switch`1_1">
<Switch.Default>
<If Condition="[Convert.ToBoolean(io_dict_Config("pip"))]" sap:VirtualizedContainerService.HintSize="713,270" sap2010:WorkflowViewState.IdRef="If_4">
<If.Then>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Switch workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_8" TargetSession="Child" UnSafe="True" WorkflowFileName="FormButtonAction.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_dict_Config">[io_dict_Config]</InOutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</If.Then>
<If.Else>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Switch workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_9" UnSafe="False" WorkflowFileName="FormButtonAction.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_dict_Config">[io_dict_Config]</InOutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</If.Else>
</If>
</Switch.Default>
<Sequence x:Key="cancel" DisplayName="Close form if selected button is Cancel" sap:VirtualizedContainerService.HintSize="400,333" sap2010:WorkflowViewState.IdRef="Sequence_25">
<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="Set cancel flag as true" sap:VirtualizedContainerService.HintSize="338,70" sap2010:WorkflowViewState.IdRef="Assign_15">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_dict_Config("formCanceled")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[True]</InArgument>
</Assign.Value>
</Assign>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="338,101" sap2010:WorkflowViewState.IdRef="LogMessage_4" Level="Trace" Message="["User pressed Cancel button"]" />
</Sequence>
<TryCatch x:Key="viewUserGuide" sap2010:Annotation.AnnotationText="Attempts to open user guide PDF" sap:VirtualizedContainerService.HintSize="438,365" sap2010:WorkflowViewState.IdRef="TryCatch_1">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<TryCatch.Try>
<ui:StartProcess Arguments="{x:Null}" WorkingDirectory="{x:Null}" DisplayName="Start Process" FileName="[io_dict_Config("userGuideUrl").ToString]" sap:VirtualizedContainerService.HintSize="334,97" sap2010:WorkflowViewState.IdRef="StartProcess_1" />
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="404,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>
<uia:BroadcastMessage ContinueOnError="{x:Null}" Channel="[io_dict_Config("statusWindowChannel").ToString]" DisplayName="Broadcast Message" sap:VirtualizedContainerService.HintSize="334,132" sap2010:WorkflowViewState.IdRef="BroadcastMessage_3" Message="[io_dict_Config("userGuideUrl").ToString]" PollingInterval="10" Timeout="0" />
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
<TryCatch x:Key="viewDemo" sap2010:Annotation.AnnotationText="Attempts to open demo video" sap:VirtualizedContainerService.HintSize="438,355" sap2010:WorkflowViewState.IdRef="TryCatch_2">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<TryCatch.Try>
<ui:StartProcess Arguments="{x:Null}" WorkingDirectory="{x:Null}" DisplayName="Start Process" FileName="[io_dict_Config("demoVideoUrl").ToString]" sap:VirtualizedContainerService.HintSize="334,87" sap2010:WorkflowViewState.IdRef="StartProcess_2" />
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="404,21" 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>
<uia:BroadcastMessage ContinueOnError="{x:Null}" Channel="[io_dict_Config("statusWindowChannel").ToString]" DisplayName="Broadcast Message" sap:VirtualizedContainerService.HintSize="334,132" sap2010:WorkflowViewState.IdRef="BroadcastMessage_4" Message="[io_dict_Config("demoVideoUrl").ToString]" PollingInterval="10" Timeout="0" />
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
</Switch>
<Assign sap2010:Annotation.AnnotationText="After execution control is returned from the button's process, update the Container component with information from the Config dictionary so the form can be updated with new information." sap:VirtualizedContainerService.HintSize="497,157" sap2010:WorkflowViewState.IdRef="Assign_13">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[obj_container]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[io_dict_Config]</InArgument>
</Assign.Value>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</Assign>
</Sequence>
</ActivityAction>
</ufa:FormActivity.Body>
<ufa:FormActivity.DelayBody>
<ActivityAction x:TypeArguments="scg:Dictionary(x:String, x:Object)">
<Delay Duration="00:00:00.2500000" sap2010:WorkflowViewState.IdRef="Delay_1" />
</ActivityAction>
</ufa:FormActivity.DelayBody>
<ufa:FormActivity.FormFieldsCollection>
<InOutArgument x:TypeArguments="x:Object" x:Key="container">
<mva:VisualBasicReference x:TypeArguments="x:Object" ExpressionText="obj_container" />
</InOutArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_BusinessProcessName">
<mva:VisualBasicValue x:TypeArguments="x:String" ExpressionText="io_dict_Config("logF_BusinessProcessName").ToString" />
</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="automationDescription">
<mva:VisualBasicValue x:TypeArguments="x:String" ExpressionText="io_dict_Config("automationDescription").ToString" />
</InArgument>
</ufa:FormActivity.FormFieldsCollection>
</ufa:FormActivity>
<If Condition="[str_selectedButton is Nothing]" DisplayName="If user closes Form by pressing the X button" sap:VirtualizedContainerService.HintSize="597,520" sap2010:WorkflowViewState.IdRef="If_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>
<If.Then>
<Sequence DisplayName="Set cancel flag" sap:VirtualizedContainerService.HintSize="400,323" sap2010:WorkflowViewState.IdRef="Sequence_24">
<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 Message" sap:VirtualizedContainerService.HintSize="338,101" sap2010:WorkflowViewState.IdRef="LogMessage_3" Level="Trace" Message="["User closed Form by pressing 'X'"]" />
<Assign DisplayName="Set cancel flag as true" sap:VirtualizedContainerService.HintSize="334,60" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_dict_Config("formCanceled")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[True]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
</If>
</Sequence>
</Activity>