-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.xaml
1039 lines (1039 loc) · 88 KB
/
Main.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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Activity mc:Ignorable="sap sap2010" x:Class="Main" this:Main.Hide_Menu="False" this:Main.Hide_Final_Message="False" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns: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:ss="clr-namespace:System.Security;assembly=mscorlib" xmlns:this="clr-namespace:" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:uwa="clr-namespace:UiPath.WPFInteractive.Activities;assembly=UiPath.WPFInteractive.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="Hide_Menu" Type="InArgument(x:Boolean)" />
<x:Property Name="Hide_Final_Message" Type="InArgument(x:Boolean)" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>1130,1145</sap:VirtualizedContainerService.HintSize>
<sap2010:WorkflowViewState.IdRef>Main2_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.Xml.Serialization</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Newtonsoft.Json</x:String>
<x:String>Microsoft.VisualBasic.CompilerServices</x:String>
<x:String>System.Net</x:String>
<x:String>System.Reflection</x:String>
<x:String>System.Runtime.InteropServices</x:String>
<x:String>System.ComponentModel</x:String>
<x:String>System.Runtime.Serialization</x:String>
<x:String>System.Collections.ObjectModel</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>System.Windows.Forms</x:String>
<x:String>System.Windows.Forms.Layout</x:String>
<x:String>UiPathTeam_StatusProgress_Activities</x:String>
<x:String>System.Text.RegularExpressions</x:String>
<x:String>System.Windows.Forms.Automation</x:String>
<x:String>System.Security</x:String>
<x:String>UiPath.WPFInteractive.Forms.Enum</x:String>
<x:String>UiPath.WPFInteractive.Activities</x:String>
<x:String>UiPath.Shared.Activities</x:String>
<x:String>UiPath.Form.Activities</x:String>
<x:String>UiPath.Platform.Triggers</x:String>
<x:String>UiPath.Platform.Triggers.Scope</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</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>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>UiPath.IntelligentOCR</AssemblyReference>
<AssemblyReference>UiPath.Python</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.Design</AssemblyReference>
<AssemblyReference>Microsoft.Bcl.AsyncInterfaces</AssemblyReference>
<AssemblyReference>System.ValueTuple</AssemblyReference>
<AssemblyReference>System.Memory</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationCore</AssemblyReference>
<AssemblyReference>System.Reflection.Metadata</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities</AssemblyReference>
<AssemblyReference>System.Windows.Forms</AssemblyReference>
<AssemblyReference>UiPathTeam.StatusProgress.Activities</AssemblyReference>
<AssemblyReference>UiPath.WPFInteractive.Forms</AssemblyReference>
<AssemblyReference>UiPath.WPFInteractive.Activities</AssemblyReference>
<AssemblyReference>UiPath.Callout.Activity</AssemblyReference>
<AssemblyReference>UiPath.Form.Activities</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities</AssemblyReference>
<AssemblyReference>UiPath.Platform</AssemblyReference>
</scg:List>
</TextExpression.ReferencesForImplementation>
<StateMachine InitialState="{x:Reference __ReferenceID2}" sap2010:Annotation.AnnotationText="[Author] - [Date] - [Version]

This process [process description]

This project is developed and tested with following package versions:

UiPath.Excel.Activities = 2.10.4
UiPath.Form.Activities = 1.5.0
UiPath.System.Activities = 21.4.1
UiPath.UIAutomation.Activities = 21.4.4
UiPath.WPFInteractive.Activities = 5.0.1
UiPath.Credentials.Activities = 1.1.6479.13204
UiPath.WebAPI.Activities = 1.7.0
UiPath.Mail.Activities = 1.12.3
[Other packages]" DisplayName="General Business Process" sap:VirtualizedContainerService.HintSize="693,1080" sap2010:WorkflowViewState.IdRef="StateMachine_1">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<av:Point x:Key="ShapeLocation">310,2.5</av:Point>
<x:Double x:Key="StateContainerWidth">659</x:Double>
<x:Double x:Key="StateContainerHeight">807.04</x:Double>
<av:PointCollection x:Key="ConnectorLocation">340,77.5 340,141</av:PointCollection>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<State x:Name="__ReferenceID1" sap2010:Annotation.AnnotationText="Process a single transaction. 
The result of the processing can be: 1) Success, 2) Business Exception, 3) System Exception." DisplayName="Process Transaction" sap:VirtualizedContainerService.HintSize="789,2032" sap2010:WorkflowViewState.IdRef="State_3">
<State.Entry>
<TryCatch DisplayName="Try to process transaction" sap:VirtualizedContainerService.HintSize="743,1549" sap2010:WorkflowViewState.IdRef="TryCatch_9">
<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="Process the current TransactionItem" sap:VirtualizedContainerService.HintSize="705,1300" sap2010:WorkflowViewState.IdRef="Sequence_28">
<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 BusinessException" sap:VirtualizedContainerService.HintSize="663,60" sap2010:WorkflowViewState.IdRef="Assign_25">
<Assign.To>
<OutArgument x:TypeArguments="ui:BusinessRuleException">[BusinessException]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="ui:BusinessRuleException">[Nothing]</InArgument>
</Assign.Value>
</Assign>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Process workflow" sap:VirtualizedContainerService.HintSize="663,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_24" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Process.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_Config">[Config]</InOutArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_ProgressWindowId">[ProgressWindowId]</InArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="io_FinalFormMessage">[FinalFormMessage]</InOutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<uwa:ProgressWindowChangeMessage InterProcessPipeName="{x:Null}" DisplayName="Progress Window Change Message " sap:VirtualizedContainerService.HintSize="663,22" sap2010:WorkflowViewState.IdRef="ProgressWindowChangeMessage_3" Message="Press CTRL+Q to Repeat or ESC to Exit" WindowId="[ProgressWindowId]">
<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>
</uwa:ProgressWindowChangeMessage>
<ui:TriggerScope sap2010:Annotation.AnnotationText="Hotkey trigger that allows the automation to redo or exit the process upon successful execution." DisplayName="Trigger Scope" sap:VirtualizedContainerService.HintSize="663,894" sap2010:WorkflowViewState.IdRef="TriggerScope_1" SchedulingMode="OneTime">
<ui:TriggerScope.Action>
<ActivityAction x:TypeArguments="ui:EventInfoTriggerArgs">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="ui:EventInfoTriggerArgs" Name="args" />
</ActivityAction.Argument>
<Sequence sap:VirtualizedContainerService.HintSize="611,441" sap2010:WorkflowViewState.IdRef="Sequence_58">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If Condition="[args.EventInfo.KeyEventInfo.KeyName = "Q"]" DisplayName="If hotkey to redo was triggered" sap:VirtualizedContainerService.HintSize="569,218" sap2010:WorkflowViewState.IdRef="If_17">
<If.Then>
<Assign sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_38">
<Assign.To>
<OutArgument x:TypeArguments="x:Boolean">[Redo]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Boolean">True</InArgument>
</Assign.Value>
</Assign>
</If.Then>
<If.Else>
<Assign sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_39">
<Assign.To>
<OutArgument x:TypeArguments="x:Boolean">[Redo]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Boolean">False</InArgument>
</Assign.Value>
</Assign>
</If.Else>
</If>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="569,91" sap2010:WorkflowViewState.IdRef="LogMessage_52" Level="Trace" Message="["Hotkey triggered"]" />
</Sequence>
</ActivityAction>
</ui:TriggerScope.Action>
<ui:TriggerScope.Triggers>
<scg:List x:TypeArguments="Activity" Capacity="4">
<ui:HotkeyTriggerV2 BlockEvent="True" DisplayName="Hotkey Trigger - Redo Process" sap:VirtualizedContainerService.HintSize="627,84" sap2010:WorkflowViewState.IdRef="HotkeyTriggerV2_1" Key="q" KeyModifiers="Ctrl" UseWindowsHotKey="False" />
<ui:HotkeyTriggerV2 BlockEvent="True" DisplayName="Hotkey Trigger - Exit Process" sap:VirtualizedContainerService.HintSize="627,84" sap2010:WorkflowViewState.IdRef="HotkeyTriggerV2_2" Key="esc" KeyModifiers="None" UseWindowsHotKey="False" />
</scg:List>
</ui:TriggerScope.Triggers>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:TriggerScope>
</Sequence>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="ui:BusinessRuleException" sap:VirtualizedContainerService.HintSize="709,21" sap2010:WorkflowViewState.IdRef="Catch`1_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>
<ActivityAction x:TypeArguments="ui:BusinessRuleException">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="ui:BusinessRuleException" Name="Exception" />
</ActivityAction.Argument>
<Assign DisplayName="Set transaction status to BusinessRuleException" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_26">
<Assign.To>
<OutArgument x:TypeArguments="ui:BusinessRuleException">[BusinessException]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="ui:BusinessRuleException">[Exception]</InArgument>
</Assign.Value>
</Assign>
</ActivityAction>
</Catch>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="709,21" sap2010:WorkflowViewState.IdRef="Catch`1_10">
<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>
<Assign DisplayName="Set transaction status to SystemException" sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_27">
<Assign.To>
<OutArgument x:TypeArguments="s:Exception">[SystemException]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="s:Exception">[Exception]</InArgument>
</Assign.Value>
</Assign>
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
</State.Entry>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">212.5,334</av:Point>
<av:Size x:Key="ShapeSize">255,172</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Double x:Key="StateContainerWidth">221</x:Double>
<x:Double x:Key="StateContainerHeight">64.000000000000114</x:Double>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<State.Transitions>
<Transition sap2010:Annotation.AnnotationText="There is no need for any action in case of successful transaction.
The process should simply go to next transaction." DisplayName="Success" sap:VirtualizedContainerService.HintSize="521,993" sap2010:WorkflowViewState.IdRef="Transition_5">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">250.75,506 250.75,536 250.4,536 250.4,634</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">11</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">10</x:Int32>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.To>
<State x:Name="__ReferenceID0" sap2010:Annotation.AnnotationText="End process and close all applications used." DisplayName="End Process" sap:VirtualizedContainerService.HintSize="256,112" sap2010:WorkflowViewState.IdRef="State_1" IsFinal="True">
<State.Entry>
<TryCatch DisplayName="Try to close all aplications" sap:VirtualizedContainerService.HintSize="577,1311" sap2010:WorkflowViewState.IdRef="TryCatch_4">
<TryCatch.Try>
<Sequence sap:VirtualizedContainerService.HintSize="376,528" sap2010:WorkflowViewState.IdRef="Sequence_57">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<uwa:ProgressWindowChangeMessage InterProcessPipeName="{x:Null}" DisplayName="Progress Window Change Message " sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="ProgressWindowChangeMessage_2" Message="Ending process" WindowId="[ProgressWindowId]">
<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>
</uwa:ProgressWindowChangeMessage>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_47" Level="Trace" Message="["Closing apps"]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke CloseAllApplications workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_21" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\CloseAllApplications.xaml">
<ui:InvokeWorkflowFile.Arguments>
<scg:Dictionary x:TypeArguments="x:String, Argument" />
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_48" Level="Trace" Message="["Finished apps"]" />
</Sequence>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="543,21" sap2010:WorkflowViewState.IdRef="Catch`1_5">
<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 DisplayName="Failed to close applications, so kill processes" sap:VirtualizedContainerService.HintSize="376,335" sap2010:WorkflowViewState.IdRef="Sequence_26">
<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 (Failed to close applications)" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_31" Level="Warn" Message="["Applications failed to close gracefully. "+Exception.Message+" at Source: "+Exception.Source]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke KillAllProcesses workflow (End process)" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_22" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\KillAllProcesses.xaml">
<ui:InvokeWorkflowFile.Arguments>
<scg:Dictionary x:TypeArguments="x:String, Argument" />
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</Sequence>
</ActivityAction>
</Catch>
</TryCatch.Catches>
<TryCatch.Finally>
<Sequence sap:VirtualizedContainerService.HintSize="539,1084" sap2010:WorkflowViewState.IdRef="Sequence_56">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<uwa:ProgressWindowClose InterProcessPipeName="{x:Null}" DisplayName="Progress Window Close" sap:VirtualizedContainerService.HintSize="497,22" sap2010:WorkflowViewState.IdRef="ProgressWindowClose_1" WindowId="[ProgressWindowId]">
<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>
</uwa:ProgressWindowClose>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="497,91" sap2010:WorkflowViewState.IdRef="LogMessage_49" Level="Trace" Message="["Loading final Form (if applicable)"]" />
<Switch x:TypeArguments="x:String" DisplayName="Switch - Final Message to User" Expression="[OriginAndStatus]" sap:VirtualizedContainerService.HintSize="497,668" sap2010:WorkflowViewState.IdRef="Switch`1_1">
<Switch.Default>
<Sequence DisplayName="Success Sequence" sap:VirtualizedContainerService.HintSize="526,391" sap2010:WorkflowViewState.IdRef="Sequence_48">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If Condition="[Not Hide_Final_Message]" sap:VirtualizedContainerService.HintSize="484,299" sap2010:WorkflowViewState.IdRef="If_16">
<If.Then>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_31" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\FinalFormMessage.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="in_Config">[Config]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_FinalFormMessage">[FinalFormMessage]</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</If.Then>
</If>
</Sequence>
</Switch.Default>
<Sequence x:Key="Init And System Exception" sap:VirtualizedContainerService.HintSize="376,418" sap2010:WorkflowViewState.IdRef="Sequence_44">
<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:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Workflow File" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_34" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\EmailError.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="in_ErrorOrigin">start up</InArgument>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_Config">[Config]</InOutArgument>
<InArgument x:TypeArguments="s:Exception" x:Key="in_SystemException">[SystemException]</InArgument>
<InArgument x:TypeArguments="ui:BusinessRuleException" x:Key="in_BusinessRuleException">[BusinessException]</InArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="io_FinalFormMessage">[FinalFormMessage]</InOutArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_ErrorType">SystemException</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_28" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\FinalFormMessage.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="in_Config">[Config]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_FinalFormMessage">[FinalFormMessage]</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<Throw Exception="[New SystemException("Init Error - " + SystemException.Message)]" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="Throw_1" />
</Sequence>
<Sequence x:Key="Process And System Exception" sap:VirtualizedContainerService.HintSize="376,418" sap2010:WorkflowViewState.IdRef="Sequence_45">
<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:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Workflow File" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_35" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\EmailError.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="in_ErrorOrigin">the process</InArgument>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_Config">[Config]</InOutArgument>
<InArgument x:TypeArguments="s:Exception" x:Key="in_SystemException">[SystemException]</InArgument>
<InArgument x:TypeArguments="ui:BusinessRuleException" x:Key="in_BusinessRuleException">[BusinessException]</InArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="io_FinalFormMessage">[FinalFormMessage]</InOutArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_ErrorType">SystemException</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_29" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\FinalFormMessage.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="in_Config">[Config]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_FinalFormMessage">[FinalFormMessage]</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<Throw Exception="[New SystemException("Processing Error - " + SystemException.Message)]" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="Throw_2" />
</Sequence>
<Sequence x:Key="Process And Business Exception" sap:VirtualizedContainerService.HintSize="376,418" sap2010:WorkflowViewState.IdRef="Sequence_47">
<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:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Workflow File" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_36" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\EmailError.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="in_ErrorOrigin">the process</InArgument>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_Config">[Config]</InOutArgument>
<InArgument x:TypeArguments="s:Exception" x:Key="in_SystemException">[SystemException]</InArgument>
<InArgument x:TypeArguments="ui:BusinessRuleException" x:Key="in_BusinessRuleException">[BusinessException]</InArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="io_FinalFormMessage">[FinalFormMessage]</InOutArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_ErrorType">BusinessRuleException</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_30" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\FinalFormMessage.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="in_Config">[Config]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_FinalFormMessage">[FinalFormMessage]</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<Throw Exception="[New BusinessRuleException("Processing Error - " + BusinessException.Message)]" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="Throw_3" />
</Sequence>
<ui:LogMessage x:Key="Init And Form Cancel" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_38" Level="Trace" Message="["User canceled execution."]" />
</Switch>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="497,91" sap2010:WorkflowViewState.IdRef="LogMessage_50" Level="Trace" Message="["Closed final Form (if applicable)"]" />
</Sequence>
</TryCatch.Finally>
</TryCatch>
</State.Entry>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">212,634</av:Point>
<av:Size x:Key="ShapeSize">256,112</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Double x:Key="StateContainerWidth">222</x:Double>
<x:Double x:Key="StateContainerHeight">34</x:Double>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</State>
</Transition.To>
<Transition.Action>
<Sequence sap:VirtualizedContainerService.HintSize="418,556" sap2010:WorkflowViewState.IdRef="Sequence_46">
<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 sap2010:Annotation.AnnotationText="Includes custom log fields to the log message.
They are removed after logging to prevent duplicated status messages about a single transaction." DisplayName="Log Success with additional logging fields" sap:VirtualizedContainerService.HintSize="376,364" sap2010:WorkflowViewState.IdRef="Sequence_30">
<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:AddLogFields DisplayName="Add transaction log fields (Success)" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="AddLogFields_3">
<ui:AddLogFields.Fields>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionStatus">Success</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionID">[TransactionID]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionField1">[TransactionField1]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionField2">[TransactionField2]</InArgument>
</ui:AddLogFields.Fields>
</ui:AddLogFields>
<ui:LogMessage DisplayName="Log Message (Success)" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_33" Level="Info" Message="[Config("LogMessage_Success").ToString]" />
<ui:RemoveLogFields DisplayName="Remove transaction log fields (Success)" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="RemoveLogFields_1">
<ui:RemoveLogFields.Fields>
<scg:List x:TypeArguments="InArgument(x:String)" Capacity="8">
<InArgument x:TypeArguments="x:String">logF_TransactionStatus</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionID</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionField1</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionField2</InArgument>
</scg:List>
</ui:RemoveLogFields.Fields>
</ui:RemoveLogFields>
</Sequence>
<Assign sap:VirtualizedContainerService.HintSize="376,60" sap2010:WorkflowViewState.IdRef="Assign_32">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[OriginAndStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Process And Successful</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</Transition.Action>
<Transition.Condition>[SystemException Is Nothing And BusinessException is Nothing And Not Redo]</Transition.Condition>
</Transition>
<Transition DisplayName="System Exception" sap:VirtualizedContainerService.HintSize="579,1195" sap2010:WorkflowViewState.IdRef="Transition_4">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">429.25,506 429.25,536 429.6,536 429.6,634</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">67</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">66</x:Int32>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.To>
<x:Reference>__ReferenceID0</x:Reference>
</Transition.To>
<Transition.Action>
<Sequence DisplayName="System Exception" sap:VirtualizedContainerService.HintSize="476,800" sap2010:WorkflowViewState.IdRef="Sequence_33">
<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:AddLogFields DisplayName="Add transaction log fields (System Exception)" sap:VirtualizedContainerService.HintSize="434,22" sap2010:WorkflowViewState.IdRef="AddLogFields_5">
<ui:AddLogFields.Fields>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionStatus">ApplicationException</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionNumber">[TransactionNumber.ToString]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionID">[TransactionID]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionField1">[TransactionField1]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionField2">[TransactionField2]</InArgument>
</ui:AddLogFields.Fields>
</ui:AddLogFields>
<ui:LogMessage DisplayName="Log Message (Business Exception)" sap:VirtualizedContainerService.HintSize="434,91" sap2010:WorkflowViewState.IdRef="LogMessage_35" Level="Error" Message="[Config("LogMessage_ApplicationException").ToString + SystemException.Message]" />
<ui:RemoveLogFields DisplayName="Remove transaction log fields (System Exception)" sap:VirtualizedContainerService.HintSize="434,22" sap2010:WorkflowViewState.IdRef="RemoveLogFields_3">
<ui:RemoveLogFields.Fields>
<scg:List x:TypeArguments="InArgument(x:String)" Capacity="8">
<InArgument x:TypeArguments="x:String">logF_TransactionStatus</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionID</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionField1</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionField2</InArgument>
</scg:List>
</ui:RemoveLogFields.Fields>
</ui:RemoveLogFields>
<Assign sap:VirtualizedContainerService.HintSize="434,60" sap2010:WorkflowViewState.IdRef="Assign_30">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[OriginAndStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Process And System Exception</InArgument>
</Assign.Value>
</Assign>
<TryCatch sap2010:Annotation.AnnotationText="Take a screenshot of the current state of the screen to facilitate debugging." DisplayName="Try taking screenshot" sap:VirtualizedContainerService.HintSize="434,353" sap2010:WorkflowViewState.IdRef="TryCatch_10">
<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>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<TryCatch.Try>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke TakeScreenshot workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_27" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\TakeScreenshot.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="in_Folder">[Config("ExScreenshotsFolderPath").ToString]</InArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="io_FilePath" />
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="400,160" sap2010:WorkflowViewState.IdRef="Catch`1_12">
<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>
<ActivityAction x:TypeArguments="s:Exception">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="s:Exception" Name="Exception" />
</ActivityAction.Argument>
<ui:LogMessage DisplayName="Log message (Screenshot not taken)" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_36" Level="Warn" Message="["Failed to take screenshot: "+Exception.Message+" at Source: "+Exception.Source]" />
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
</Sequence>
</Transition.Action>
<Transition.Condition>[SystemException IsNot Nothing]</Transition.Condition>
</Transition>
<Transition sap2010:Annotation.AnnotationText="Business Rule Exception" DisplayName="Business Exception" sap:VirtualizedContainerService.HintSize="521,982" sap2010:WorkflowViewState.IdRef="Transition_1">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">327.25,506 327.25,536 327.2,536 327.2,634</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">35</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">34</x:Int32>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.To>
<x:Reference>__ReferenceID0</x:Reference>
</Transition.To>
<Transition.Action>
<Sequence sap:VirtualizedContainerService.HintSize="418,556" sap2010:WorkflowViewState.IdRef="Sequence_32">
<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 sap2010:Annotation.AnnotationText="Includes custom log fields to the log message.
They are removed after logging to prevent duplicated status messages about a single transaction." DisplayName="Log business exception with additional logging fields" sap:VirtualizedContainerService.HintSize="376,364" sap2010:WorkflowViewState.IdRef="Sequence_31">
<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:AddLogFields DisplayName="Add transaction log fields (Business Exception)" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="AddLogFields_4">
<ui:AddLogFields.Fields>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionStatus">BusinessException</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionID">[TransactionID]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionField1">[TransactionField1]</InArgument>
<InArgument x:TypeArguments="x:String" x:Key="logF_TransactionField2">[TransactionField2]</InArgument>
</ui:AddLogFields.Fields>
</ui:AddLogFields>
<ui:LogMessage DisplayName="Log Message (Business Exception)" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_34" Level="Error" Message="[Config("LogMessage_BusinessRuleException").ToString + BusinessException.Message]" />
<ui:RemoveLogFields DisplayName="Remove transaction log fields (Business Exception)" sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="RemoveLogFields_2">
<ui:RemoveLogFields.Fields>
<scg:List x:TypeArguments="InArgument(x:String)" Capacity="8">
<InArgument x:TypeArguments="x:String">logF_TransactionStatus</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionID</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionField1</InArgument>
<InArgument x:TypeArguments="x:String">logF_TransactionField2</InArgument>
</scg:List>
</ui:RemoveLogFields.Fields>
</ui:RemoveLogFields>
</Sequence>
<Assign sap:VirtualizedContainerService.HintSize="376,60" sap2010:WorkflowViewState.IdRef="Assign_31">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[OriginAndStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Process And Business Exception</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</Transition.Action>
<Transition.Condition>[BusinessException IsNot Nothing]</Transition.Condition>
</Transition>
<Transition sap2010:Annotation.AnnotationText="If redo trigger was executed, loop back to the Initialization or Process state depending on whether the user needs to access the Form again (Initialization) or is able to reprocess using the last saved selections (Process)." DisplayName="Redo" sap:VirtualizedContainerService.HintSize="450,562" sap2010:WorkflowViewState.IdRef="Transition_7">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">225.25,506 225.25,535.4 183,535.4 183,235.4 213,235.4</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">3</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">61</x:Int32>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.Condition>[Redo]</Transition.Condition>
<Transition.To>
<State x:Name="__ReferenceID2" sap2010:Annotation.AnnotationText="Read configuration file , display the Form and initialize applications used in the process." DisplayName="Initialization" sap:VirtualizedContainerService.HintSize="254,118" sap2010:WorkflowViewState.IdRef="State_2">
<State.Entry>
<TryCatch DisplayName="Try initializing settings and applications" sap:VirtualizedContainerService.HintSize="684,4774" 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="Load configurations and open applications" sap:VirtualizedContainerService.HintSize="646,4547" sap2010:WorkflowViewState.IdRef="Sequence_4">
<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:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="604,91" sap2010:WorkflowViewState.IdRef="LogMessage_39" Level="Trace" Message="["Init started"]" />
<uwa:ProgressWindowClose InterProcessPipeName="{x:Null}" DisplayName="Progress Window Close" sap:VirtualizedContainerService.HintSize="604,22" sap2010:WorkflowViewState.IdRef="ProgressWindowClose_2" WindowId="[ProgressWindowId]">
<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>
</uwa:ProgressWindowClose>
<uwa:ProgressWindowShow ImageSource="{x:Null}" InterProcessPipeName="{x:Null}" BlockUntilWindowIsClosed="False" DisplayInTaskbar="False" DisplayName="Display Progress Window" Height="200" sap:VirtualizedContainerService.HintSize="604,22" sap2010:WorkflowViewState.IdRef="ProgressWindowShow_1" ImageHeight="0" ImageWidth="0" Message="Starting up" MessageFontFamily="Calibri" MessageFontSize="17" MessageStackFontFamily="Calibri" MessageStackFontSize="0" MessageStackShow="False" Position="TopRight" ProgressBarHeight="0" ProgressBarPercentageFontFamily="Calibri" ProgressBarPercentageFontSize="0" ProgressBarPercentageShow="False" Title="Automation Progress" TitleFontFamily="Calibri" TitleFontSize="15" TopMost="True" Width="350" WindowId="[ProgressWindowId]">
<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>
</uwa:ProgressWindowShow>
<Assign DisplayName="Assign SystemException (initialization)" sap:VirtualizedContainerService.HintSize="604,60" sap2010:WorkflowViewState.IdRef="Assign_5">
<Assign.To>
<OutArgument x:TypeArguments="s:Exception">[SystemException]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="s:Exception">[Nothing]</InArgument>
</Assign.Value>
</Assign>
<If sap2010:Annotation.AnnotationText="An uninitialized Config dictionary indicates that it is the first run of the process." Condition="[Config is Nothing]" DisplayName="If first run, read local configuration file" sap:VirtualizedContainerService.HintSize="604,1248" sap2010:WorkflowViewState.IdRef="If_1">
<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>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Then>
<Sequence DisplayName="First run" sap:VirtualizedContainerService.HintSize="376,1030" sap2010:WorkflowViewState.IdRef="Sequence_17">
<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:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_40" Level="Trace" Message="["Loading Config"]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke InitAllSettings workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_12" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\InitAllSettings.xaml">
<ui:InvokeWorkflowFile.Arguments>
<OutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="Out_Config">[Config]</OutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_51" Level="Trace" Message="["Killing processes"]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" sap2010:Annotation.AnnotationText="Kills all Windows processes representing applications used in this business process to assure that the execution starts in a clean state.
Since the applications are assumed to be already closed, CloseAllApplications is skipped and just KillAllProcess is invoked." DisplayName="Invoke KillAllProcesses workflow (first run)" sap:VirtualizedContainerService.HintSize="334,214" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_19" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\KillAllProcesses.xaml">
<ui:InvokeWorkflowFile.Arguments>
<scg:Dictionary x:TypeArguments="x:String, Argument" />
</ui:InvokeWorkflowFile.Arguments>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:InvokeWorkflowFile>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_41" Level="Trace" Message="["Killed processes"]" />
<ui:AddLogFields sap2010:Annotation.AnnotationText="Add the process name to the logs generated after this point. 
This log field can be used to create reports and visualizations about the process." DisplayName="Add Log Fields (BusinessProcessName)" sap:VirtualizedContainerService.HintSize="334,139" sap2010:WorkflowViewState.IdRef="AddLogFields_2">
<ui:AddLogFields.Fields>
<InArgument x:TypeArguments="x:String" x:Key="logF_BusinessProcessName">[Config("logF_BusinessProcessName").ToString]</InArgument>
</ui:AddLogFields.Fields>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:AddLogFields>
</Sequence>
</If.Then>
</If>
<ui:WindowScope ApplicationWindow="{x:Null}" SearchScope="{x:Null}" Window="{x:Null}" ContinueOnError="True" DisplayName="Minimise UiPath Assistant" sap:VirtualizedContainerService.HintSize="604,22" sap2010:WorkflowViewState.IdRef="WindowScope_1" InformativeScreenshot="94eecaf2ad5704623a5283d543a7ebcc" Selector="<wnd app='uipath.assistant.exe' omit:cls='Chrome_WidgetWin_1' title='UiPath Assistant' />" TimeoutMS="100">
<ui:WindowScope.Body>
<ActivityAction x:TypeArguments="x:Object">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="ContextTarget" />
</ActivityAction.Argument>
<Sequence DisplayName="Do" sap:VirtualizedContainerService.HintSize="242,114" sap2010:WorkflowViewState.IdRef="Sequence_42">
<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:MinimizeWindow Window="{x:Null}" ContinueOnError="True" DisplayName="Minimize Window" sap:VirtualizedContainerService.HintSize="200,22" sap2010:WorkflowViewState.IdRef="MinimizeWindow_1" />
</Sequence>
</ActivityAction>
</ui:WindowScope.Body>
<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>
</ui:WindowScope>
<If sap2010:Annotation.AnnotationText="To show the Form at runtime, it must be the first run of the automation (including a newly published version) OR the Check_To_Hide_Menu argument is not checked in the Assistant" Condition="[Hide_Menu AND (Not Convert.ToBoolean(Config("First_Run")))]" DisplayName="If Hide_Menu is True" sap:VirtualizedContainerService.HintSize="604,666" sap2010:WorkflowViewState.IdRef="If_12">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If.Else>
<Sequence sap:VirtualizedContainerService.HintSize="376,466" sap2010:WorkflowViewState.IdRef="Sequence_29">
<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="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_42" Level="Trace" Message="["Loading Form"]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Workflow File" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_26" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="DisplayForm.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InOutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="io_Config">[Config]</InOutArgument>
<OutArgument x:TypeArguments="x:Boolean" x:Key="out_CancelFormSelected">[CancelFormSelected]</OutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_43" Level="Trace" Message="["Form submitted"]" />
</Sequence>
</If.Else>
</If>
<If Condition="[Not CancelFormSelected]" sap:VirtualizedContainerService.HintSize="604,2044" sap2010:WorkflowViewState.IdRef="If_15">
<If.Then>
<Sequence DisplayName="Save Config and open applications" sap:VirtualizedContainerService.HintSize="568,1857" sap2010:WorkflowViewState.IdRef="Sequence_52">
<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 sap2010:Annotation.AnnotationText="During the initial run of an automation (including new versions), we change the First_Run parameter in the Config file to False so that future runs with a checked Hide_Menu argument do not display the Form." DisplayName="Update First_Run in the Config File to False" sap:VirtualizedContainerService.HintSize="526,488" sap2010:WorkflowViewState.IdRef="Sequence_61">
<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>
<If Condition="[Convert.ToBoolean(Config("First_Run")) = True]" sap:VirtualizedContainerService.HintSize="484,339" sap2010:WorkflowViewState.IdRef="If_18">
<If.Then>
<Sequence DisplayName="Update First_Run in Config Settings Sheet" sap:VirtualizedContainerService.HintSize="304,152" sap2010:WorkflowViewState.IdRef="Sequence_59">
<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 sap:VirtualizedContainerService.HintSize="262,60" sap2010:WorkflowViewState.IdRef="Assign_40">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[Config("First_Run")]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">[False]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
</If>
</Sequence>
<ui:WriteTextFile sap2010:Annotation.AnnotationText="Overwrite Run Config text file with new selections made in the Form." DisplayName="Overwrite Run Config Text File" FileName="[Config("AutomationConfigFolderpath").tostring+"\Run Config.txt"]" sap:VirtualizedContainerService.HintSize="526,174" sap2010:WorkflowViewState.IdRef="WriteTextFile_2" Text="[Newtonsoft.Json.JsonConvert.SerializeObject(Config)]">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:WriteTextFile>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="526,91" sap2010:WorkflowViewState.IdRef="LogMessage_53" Level="Trace" Message="["Overwrote Run Config"]" />
<ui:CommentOut DisplayName="Comment Out - GetAppCred" sap:VirtualizedContainerService.HintSize="526,324" sap2010:WorkflowViewState.IdRef="CommentOut_1">
<ui:CommentOut.Body>
<Sequence sap2010:Annotation.AnnotationText="For automations utilizing credentials, enable this sequence and provide the credential name for the in_Credential argument." DisplayName="Get Credential Asset" sap:VirtualizedContainerService.HintSize="376,246" sap2010:WorkflowViewState.IdRef="Sequence_53">
<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:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke Workflow File" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_32" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\GetAppCredentials.xaml">
<ui:InvokeWorkflowFile.Arguments>
<OutArgument x:TypeArguments="x:String" x:Key="out_Username">[Username]</OutArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_Credential">Replace me</InArgument>
<OutArgument x:TypeArguments="ss:SecureString" x:Key="out_Password">[Password]</OutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</Sequence>
</ui:CommentOut.Body>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:CommentOut>
<Sequence DisplayName="Start applications (if applicable)" sap:VirtualizedContainerService.HintSize="526,528" sap2010:WorkflowViewState.IdRef="Sequence_51">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<uwa:ProgressWindowChangeMessage InterProcessPipeName="{x:Null}" DisplayName="Progress Window Change Message " sap:VirtualizedContainerService.HintSize="334,22" sap2010:WorkflowViewState.IdRef="ProgressWindowChangeMessage_1" Message="Beginning process" WindowId="[ProgressWindowId]">
<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>
</uwa:ProgressWindowChangeMessage>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_45" Level="Trace" Message="["Opening apps"]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke InitiAllApplications workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_5" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="Framework\InitAllApplications.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="in_Config">[Config]</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_46" Level="Trace" Message="["Finished opening apps"]" />
</Sequence>
</Sequence>
</If.Then>
</If>
</Sequence>
</TryCatch.Try>
<TryCatch.Catches>
<Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="650,21" sap2010:WorkflowViewState.IdRef="Catch`1_3">
<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>
<Assign sap2010:Annotation.AnnotationText="Failures during the initialization are considered system exceptions and lead to the End Process state, thus finalizing the execution." DisplayName="Assign SystemException" sap:VirtualizedContainerService.HintSize="262,91" sap2010:WorkflowViewState.IdRef="Assign_21">
<Assign.To>
<OutArgument x:TypeArguments="s:Exception">[SystemException]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="s:Exception">[Exception]</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>
</ActivityAction>
</Catch>
</TryCatch.Catches>
</TryCatch>
</State.Entry>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">213,141</av:Point>
<av:Size x:Key="ShapeSize">254,118</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Double x:Key="StateContainerWidth">220</x:Double>
<x:Double x:Key="StateContainerHeight">25</x:Double>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<State.Transitions>
<Transition DisplayName="Successful" sap:VirtualizedContainerService.HintSize="450,507" sap2010:WorkflowViewState.IdRef="Transition_2">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Int32 x:Key="SrcConnectionPointIndex">39</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">38</x:Int32>
<av:PointCollection x:Key="ConnectorLocation">340,259 340,334</av:PointCollection>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.To>
<x:Reference>__ReferenceID1</x:Reference>
</Transition.To>
<Transition.Action>
<ui:Comment DisplayName="Comment (default transition)" sap:VirtualizedContainerService.HintSize="334,74" sap2010:WorkflowViewState.IdRef="Comment_1" Text="Default transition is picked up if there are no errors during initialization" />
</Transition.Action>
<Transition.Condition>[SystemException is Nothing And (Not CancelFormSelected)]</Transition.Condition>
</Transition>
<Transition DisplayName="Cancel Form" sap:VirtualizedContainerService.HintSize="479,678" sap2010:WorkflowViewState.IdRef="Transition_6">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">213,200 90.5,200 90.5,706.8 212,706.8</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">37</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">49</x:Int32>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.To>
<x:Reference>__ReferenceID0</x:Reference>
</Transition.To>
<Transition.Action>
<Sequence sap:VirtualizedContainerService.HintSize="376,283" sap2010:WorkflowViewState.IdRef="Sequence_50">
<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 (initialization failure)" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_37" Level="Info" Message="["User canceled execution during Form display."]" />
<Assign sap:VirtualizedContainerService.HintSize="334,60" sap2010:WorkflowViewState.IdRef="Assign_36">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[OriginAndStatus]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">["Init And Form Cancel"]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</Transition.Action>
<Transition.Condition>[CancelFormSelected]</Transition.Condition>
</Transition>
<Transition DisplayName="System Exception (failed initialization)" sap:VirtualizedContainerService.HintSize="479,678" sap2010:WorkflowViewState.IdRef="Transition_3">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">467,205.9 497,205.9 497,706.8 468,706.8</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">40</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">48</x:Int32>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Transition.To>
<x:Reference>__ReferenceID0</x:Reference>
</Transition.To>
<Transition.Action>
<Sequence sap:VirtualizedContainerService.HintSize="376,283" sap2010:WorkflowViewState.IdRef="Sequence_43">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>