-
Notifications
You must be signed in to change notification settings - Fork 0
/
DisplayInputForm.xaml
303 lines (303 loc) · 26.3 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
<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=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: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_Config" Type="InOutArgument(scg:Dictionary(x:String, x:Object))" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>1130.4,2396</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>
<sco:Collection x:TypeArguments="AssemblyReference">
<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>
<AssemblyReference>UiPath.Studio.Constants</AssemblyReference>
</sco:Collection>
</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="658.4,2331.2" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="selectedButton" />
<Variable x:TypeArguments="x:Object" Name="containerObj" />
</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" DisplayName="Assign Object Variable" sap:VirtualizedContainerService.HintSize="596,113.6" sap2010:WorkflowViewState.IdRef="Assign_12">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[containerObj]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[io_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}" sap2010:Annotation.AnnotationText="If your automation has outputs, set the output folderpath to the field key ouptutFolderPath. This will be used as the folderpath to open for the "View Output" button in the Results Form." CreateFormId="b774a24c-432c-42e9-a62a-90d64cfef72b" DisableMaximizeButton="False" DisableMinimizeButton="False" DisableSanitize="True" DisplayName="Create Form - Input Form" FormHeight="480" 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":8,"input":false,"tableView":false,"rows":[[{"components":[{"label":"View user guide","action":"custom","theme":"secondary","tableView":false,"key":"viewUserGuide","custom":"instance.emit('executeDoBlock', instance.component);","isResetData":false,"showUpdateData":false,"input":true,"type":"button","allowMultipleClicksWhileDoBlock":false,"hideOnChildrenHidden":false}]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]},{"components":[]}]]},{"label":"Select output folder","customClass":"folderPath","showAllFileTypes":true,"validate":{"required":true},"key":"outputFolderPath","input":true,"suffix":"Select ","tableView":true,"type":"filePath"},{"label":"Table","cellAlignment":"right","key":"table","type":"table","numRows":1,"numCols":8,"input":false,"tableView":false,"rows":[[{"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" FormWidth="700" GenerateInputFields="False" sap:VirtualizedContainerService.HintSize="596,1340.8" sap2010:WorkflowViewState.IdRef="FormActivity_1" IsReadOnly="False" MaxColumnsForSchemaGeneration="6" RunDoBlockFirst="False" RunInIsolatedMode="False" SelectedButton="[selectedButton]" StartAsMinimized="False">
<ufa:FormActivity.Body>
<ActivityAction x:TypeArguments="scg:Dictionary(x:String, x:Object)">
<Sequence DisplayName="Form Action" sap:VirtualizedContainerService.HintSize="559.2,1160.8" 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="496.8,512.8" sap2010:WorkflowViewState.IdRef="Sequence_26">
<Sequence.Variables>
<Variable x:TypeArguments="scg:Dictionary(x:String, x:Object)" Name="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>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:DeserializeJson x:TypeArguments="scg:Dictionary(x:String, x:Object)" DisplayName="Deserialize JSON - containerObj" sap:VirtualizedContainerService.HintSize="433.6,69.6" sap2010:WorkflowViewState.IdRef="DeserializeJson`1_3" JsonObject="[objContainer]" JsonString="[jsonconvert.SerializeObject(containerObj)]" />
<ui:ForEach x:TypeArguments="scg:KeyValuePair(x:String, x:Object)" CurrentIndex="{x:Null}" DisplayName="For Each Pair" sap:VirtualizedContainerService.HintSize="433.6,204" sap2010:WorkflowViewState.IdRef="ForEach`1_1" Values="[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 DisplayName="Assign Pair Value" sap:VirtualizedContainerService.HintSize="262.4,69.6" sap2010:WorkflowViewState.IdRef="Assign_16">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_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="496.8,69.6" sap2010:WorkflowViewState.IdRef="Assign_14">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_Config("selectedButton")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[selectedButton]</InArgument>
</Assign.Value>
</Assign>
<Switch x:TypeArguments="x:String" DisplayName="Switch - Selected Button" Expression="[selectedButton]" sap:VirtualizedContainerService.HintSize="496.8,173.6" sap2010:WorkflowViewState.IdRef="Switch`1_1">
<Switch.Default>
<If Condition="[Convert.ToBoolean(io_Config("pip"))]" DisplayName="If PiP Mode" sap:VirtualizedContainerService.HintSize="711.2,292" sap2010:WorkflowViewState.IdRef="If_4">
<If.Then>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Switch workflow - PiP" sap:VirtualizedContainerService.HintSize="333.6,123.2" 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_Config">
<mva:VisualBasicReference x:TypeArguments="scg:Dictionary(x:String, x:Object)" ExpressionText="io_Config" />
</InOutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</If.Then>
<If.Else>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Switch workflow - None PiP" sap:VirtualizedContainerService.HintSize="333.6,123.2" 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_Config">
<mva:VisualBasicReference x:TypeArguments="scg:Dictionary(x:String, x:Object)" ExpressionText="io_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.6" 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="337.6,69.6" sap2010:WorkflowViewState.IdRef="Assign_15">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_Config("formCanceled")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[True]</InArgument>
</Assign.Value>
</Assign>
<ui:LogMessage DisplayName="Log Message - Cancel Button" sap:VirtualizedContainerService.HintSize="337.6,102.4" sap2010:WorkflowViewState.IdRef="LogMessage_4" Level="Trace" Message="["User pressed Cancel button"]" />
</Sequence>
<TryCatch x:Key="viewUserGuide" sap2010:Annotation.AnnotationText="Try to open user guide link in default web browser, otherwise send status window message to user that user guide link isn't available." sap:VirtualizedContainerService.HintSize="436.8,382.4" 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 - Get User Guide URL" FileName="[io_Config("userGuideUrl").ToString]" sap:VirtualizedContainerService.HintSize="333.6,97.6" sap2010:WorkflowViewState.IdRef="StartProcess_1" />
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="403.2,22.4" 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_Config("statusWindowChannel").ToString]" DisplayName="Broadcast Message - User Guide URL" sap:VirtualizedContainerService.HintSize="333.6,144" sap2010:WorkflowViewState.IdRef="BroadcastMessage_3" Message="[io_Config("userGuideUrl").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." DisplayName="Assign Container Object" sap:VirtualizedContainerService.HintSize="496.8,161.6" sap2010:WorkflowViewState.IdRef="Assign_13">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[containerObj]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[io_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">[containerObj]</InOutArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_BusinessProcessName">[io_Config("logF_BusinessProcessName").ToString]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="automationDescription">[io_Config("automationDescription").ToString]</InArgument>
</ufa:FormActivity.FormFieldsCollection>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ufa:FormActivity>
<If Condition="[selectedButton is Nothing]" DisplayName="If user closes Form by pressing the X button" sap:VirtualizedContainerService.HintSize="596,533.6" 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,335.2" 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 - Closed By X" sap:VirtualizedContainerService.HintSize="337.6,102.4" sap2010:WorkflowViewState.IdRef="LogMessage_3" Level="Trace" Message="["User closed Form by pressing 'X'"]" />
<Assign DisplayName="Set cancel flag as true - X Clicked" sap:VirtualizedContainerService.HintSize="337.6,69.6" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[io_Config("formCanceled")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[True]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
</If>
</Sequence>
</Activity>