|
2 | 2 | <x:Members>
|
3 | 3 | <x:Property Name="in_str_MainFolderPath" Type="InArgument(x:String)" />
|
4 | 4 | <x:Property Name="in_str_ListSubFoldersName" Type="InArgument(x:String)" />
|
| 5 | + <x:Property Name="in_int_RetryValidateSubFolders" Type="InArgument(x:Int32)" /> |
5 | 6 | </x:Members>
|
6 | 7 | <VisualBasic.Settings>
|
7 | 8 | <x:Null />
|
|
93 | 94 | <AssemblyReference>System.Runtime.Serialization.Primitives</AssemblyReference>
|
94 | 95 | </sco:Collection>
|
95 | 96 | </TextExpression.ReferencesForImplementation>
|
96 |
| - <Sequence sap2010:Annotation.AnnotationText="[ValidateExistenceSubFolders]
[Validate the existence of subfolders in the main folder.]
[Arguments:

IN:

OUT: N/A.

IN/OUT: N/A.]" DisplayName="ValidateExistenceSubFolders" sap:VirtualizedContainerService.HintSize="507.2,493.6" sap2010:WorkflowViewState.IdRef="Sequence_1"> |
| 97 | + <Sequence sap2010:Annotation.AnnotationText="[ValidateExistenceSubFolders]
[Validate the existence of subfolders in the main folder.]
[Arguments:

IN:

- in_int_RetryValidateSubFolders (Int32): Stores the number of retries to validate the existence of subfolders;

- in_str_ListSubFoldersName (String): Stores the list of subfolders' names to validate their existence;

- in_str_MainFolderPath (String): Stores the full path of the mian folder.

OUT: N/A.

IN/OUT: N/A.]" DisplayName="ValidateExistenceSubFolders" sap:VirtualizedContainerService.HintSize="507.2,541.6" sap2010:WorkflowViewState.IdRef="Sequence_1"> |
97 | 98 | <sap:WorkflowViewStateService.ViewState>
|
98 | 99 | <scg:Dictionary x:TypeArguments="x:String, x:Object">
|
99 | 100 | <x:Boolean x:Key="IsExpanded">True</x:Boolean>
|
|
135 | 136 | <x:Boolean x:Key="IsExpanded">True</x:Boolean>
|
136 | 137 | </scg:Dictionary>
|
137 | 138 | </sap:WorkflowViewStateService.ViewState>
|
138 |
| - <If Condition="[Directory.Exists(String.Format("{0}/{1}", in_str_MainFolderPath.TrimStart.TrimEnd, CurrentFolder.TrimStart.TrimEnd))]" DisplayName="Verify if Current Folder Exists in the Main Folder" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="If_1"> |
139 |
| - <sap:WorkflowViewStateService.ViewState> |
140 |
| - <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
141 |
| - <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
142 |
| - <x:Boolean x:Key="IsPinned">False</x:Boolean> |
143 |
| - </scg:Dictionary> |
144 |
| - </sap:WorkflowViewStateService.ViewState> |
145 |
| - <If.Then> |
146 |
| - <Sequence sap:VirtualizedContainerService.HintSize="300,142.4" sap2010:WorkflowViewState.IdRef="Sequence_3"> |
147 |
| - <sap:WorkflowViewStateService.ViewState> |
148 |
| - <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
149 |
| - <x:Boolean x:Key="IsExpanded">True</x:Boolean> |
150 |
| - </scg:Dictionary> |
151 |
| - </sap:WorkflowViewStateService.ViewState> |
152 |
| - <ui:LogMessage DisplayName="Log Message: Current Folder Exists" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="LogMessage_2" Level="[UiPath.Core.Activities.LogLevel.Info]" Message="[String.Format("The {0} subfolder exists in the Main Folder...", CurrentFolder.TrimStart.TrimEnd)]"> |
| 139 | + <ui:RetryScope DisplayName="Retry Scope: Retry the Validation of the Existence of SubFolders" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="RetryScope_1" NumberOfRetries="[in_int_RetryValidateSubFolders]"> |
| 140 | + <ui:RetryScope.ActivityBody> |
| 141 | + <ActivityAction> |
| 142 | + <If Condition="[Directory.Exists(String.Format("{0}/{1}", in_str_MainFolderPath.TrimStart.TrimEnd, CurrentFolder.TrimStart.TrimEnd))]" DisplayName="Verify if Current Folder Exists in the Main Folder" sap:VirtualizedContainerService.HintSize="200,52.8" sap2010:WorkflowViewState.IdRef="If_1"> |
153 | 143 | <sap:WorkflowViewStateService.ViewState>
|
154 | 144 | <scg:Dictionary x:TypeArguments="x:String, x:Object">
|
155 | 145 | <x:Boolean x:Key="IsExpanded">False</x:Boolean>
|
156 | 146 | <x:Boolean x:Key="IsPinned">False</x:Boolean>
|
157 | 147 | </scg:Dictionary>
|
158 | 148 | </sap:WorkflowViewStateService.ViewState>
|
159 |
| - </ui:LogMessage> |
160 |
| - </Sequence> |
161 |
| - </If.Then> |
162 |
| - <If.Else> |
163 |
| - <Sequence sap:VirtualizedContainerService.HintSize="300,235.2" sap2010:WorkflowViewState.IdRef="Sequence_4"> |
164 |
| - <sap:WorkflowViewStateService.ViewState> |
165 |
| - <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
166 |
| - <x:Boolean x:Key="IsExpanded">True</x:Boolean> |
167 |
| - </scg:Dictionary> |
168 |
| - </sap:WorkflowViewStateService.ViewState> |
169 |
| - <ui:LogMessage DisplayName="Log Message: Current Folder No Exists" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="LogMessage_3" Level="[UiPath.Core.Activities.LogLevel.Error]" Message="[String.Format("The {0} subfolder does not exist in the Main Folder...", CurrentFolder.TrimStart.TrimEnd)]"> |
| 149 | + <If.Then> |
| 150 | + <Sequence sap:VirtualizedContainerService.HintSize="300,142.4" sap2010:WorkflowViewState.IdRef="Sequence_3"> |
| 151 | + <sap:WorkflowViewStateService.ViewState> |
| 152 | + <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
| 153 | + <x:Boolean x:Key="IsExpanded">True</x:Boolean> |
| 154 | + </scg:Dictionary> |
| 155 | + </sap:WorkflowViewStateService.ViewState> |
| 156 | + <ui:LogMessage DisplayName="Log Message: Current Folder Exists" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="LogMessage_2" Level="[UiPath.Core.Activities.LogLevel.Info]" Message="[String.Format("The {0} subfolder exists in the Main Folder...", CurrentFolder.TrimStart.TrimEnd)]"> |
| 157 | + <sap:WorkflowViewStateService.ViewState> |
| 158 | + <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
| 159 | + <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
| 160 | + <x:Boolean x:Key="IsPinned">False</x:Boolean> |
| 161 | + </scg:Dictionary> |
| 162 | + </sap:WorkflowViewStateService.ViewState> |
| 163 | + </ui:LogMessage> |
| 164 | + </Sequence> |
| 165 | + </If.Then> |
| 166 | + <If.Else> |
| 167 | + <Sequence sap:VirtualizedContainerService.HintSize="300,235.2" sap2010:WorkflowViewState.IdRef="Sequence_4"> |
| 168 | + <sap:WorkflowViewStateService.ViewState> |
| 169 | + <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
| 170 | + <x:Boolean x:Key="IsExpanded">True</x:Boolean> |
| 171 | + </scg:Dictionary> |
| 172 | + </sap:WorkflowViewStateService.ViewState> |
| 173 | + <ui:LogMessage DisplayName="Log Message: Current Folder No Exists" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="LogMessage_3" Level="[UiPath.Core.Activities.LogLevel.Error]" Message="[String.Format("The {0} subfolder does not exist in the Main Folder...", CurrentFolder.TrimStart.TrimEnd)]"> |
| 174 | + <sap:WorkflowViewStateService.ViewState> |
| 175 | + <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
| 176 | + <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
| 177 | + <x:Boolean x:Key="IsPinned">False</x:Boolean> |
| 178 | + </scg:Dictionary> |
| 179 | + </sap:WorkflowViewStateService.ViewState> |
| 180 | + </ui:LogMessage> |
| 181 | + <Throw DisplayName="Throw SE Current Folder Not Exists" Exception="[New SystemException(String.Format("The {0} subfolder does not exist in the Main Folder...", CurrentFolder.TrimStart.TrimEnd))]" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="Throw_1"> |
| 182 | + <sap:WorkflowViewStateService.ViewState> |
| 183 | + <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
| 184 | + <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
| 185 | + <x:Boolean x:Key="IsPinned">False</x:Boolean> |
| 186 | + </scg:Dictionary> |
| 187 | + </sap:WorkflowViewStateService.ViewState> |
| 188 | + </Throw> |
| 189 | + </Sequence> |
| 190 | + </If.Else> |
| 191 | + </If> |
| 192 | + </ActivityAction> |
| 193 | + </ui:RetryScope.ActivityBody> |
| 194 | + <ui:RetryScope.Condition> |
| 195 | + <ActivityFunc x:TypeArguments="x:Boolean"> |
| 196 | + <ui:CheckTrue ErrorMessage="{x:Null}" DisplayName="Check True: Check the Existence of SubFolders" Expression="[Directory.Exists(String.Format("{0}/{1}", in_str_MainFolderPath.TrimStart.TrimEnd, CurrentFolder.TrimStart.TrimEnd))]" sap:VirtualizedContainerService.HintSize="332,52.8" sap2010:WorkflowViewState.IdRef="CheckTrue_1"> |
170 | 197 | <sap:WorkflowViewStateService.ViewState>
|
171 | 198 | <scg:Dictionary x:TypeArguments="x:String, x:Object">
|
172 | 199 | <x:Boolean x:Key="IsExpanded">False</x:Boolean>
|
173 | 200 | <x:Boolean x:Key="IsPinned">False</x:Boolean>
|
174 | 201 | </scg:Dictionary>
|
175 | 202 | </sap:WorkflowViewStateService.ViewState>
|
176 |
| - </ui:LogMessage> |
177 |
| - <Throw DisplayName="Throw SE Current Folder Not Exists" Exception="[New SystemException(String.Format("The {0} subfolder does not exist in the Main Folder...", CurrentFolder.TrimStart.TrimEnd))]" sap:VirtualizedContainerService.HintSize="256.8,52.8" sap2010:WorkflowViewState.IdRef="Throw_1"> |
178 |
| - <sap:WorkflowViewStateService.ViewState> |
179 |
| - <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
180 |
| - <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
181 |
| - <x:Boolean x:Key="IsPinned">False</x:Boolean> |
182 |
| - </scg:Dictionary> |
183 |
| - </sap:WorkflowViewStateService.ViewState> |
184 |
| - </Throw> |
185 |
| - </Sequence> |
186 |
| - </If.Else> |
187 |
| - </If> |
| 203 | + </ui:CheckTrue> |
| 204 | + </ActivityFunc> |
| 205 | + </ui:RetryScope.Condition> |
| 206 | + <sap:WorkflowViewStateService.ViewState> |
| 207 | + <scg:Dictionary x:TypeArguments="x:String, x:Object"> |
| 208 | + <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
| 209 | + <x:Boolean x:Key="IsPinned">False</x:Boolean> |
| 210 | + </scg:Dictionary> |
| 211 | + </sap:WorkflowViewStateService.ViewState> |
| 212 | + </ui:RetryScope> |
188 | 213 | </Sequence>
|
189 | 214 | </ActivityAction>
|
190 | 215 | </ui:ForEach.Body>
|
|
206 | 231 | </Sequence>
|
207 | 232 | </TryCatch.Try>
|
208 | 233 | <TryCatch.Catches>
|
209 |
| - <Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="411.2,22.4" sap2010:WorkflowViewState.IdRef="Catch`1_1"> |
| 234 | + <Catch x:TypeArguments="s:Exception" sap:VirtualizedContainerService.HintSize="452.8,22.4" sap2010:WorkflowViewState.IdRef="Catch`1_1"> |
210 | 235 | <sap:WorkflowViewStateService.ViewState>
|
211 | 236 | <scg:Dictionary x:TypeArguments="x:String, x:Object">
|
212 | 237 | <x:Boolean x:Key="IsExpanded">False</x:Boolean>
|
|
227 | 252 | </ui:LogMessage>
|
228 | 253 | </ActivityAction>
|
229 | 254 | </Catch>
|
230 |
| - <Catch x:TypeArguments="ui:BusinessRuleException" sap:VirtualizedContainerService.HintSize="411.2,123.2" sap2010:WorkflowViewState.IdRef="Catch`1_2"> |
| 255 | + <Catch x:TypeArguments="ui:BusinessRuleException" sap:VirtualizedContainerService.HintSize="452.8,22.4" sap2010:WorkflowViewState.IdRef="Catch`1_2"> |
231 | 256 | <sap:WorkflowViewStateService.ViewState>
|
232 | 257 | <scg:Dictionary x:TypeArguments="x:String, x:Object">
|
233 |
| - <x:Boolean x:Key="IsExpanded">True</x:Boolean> |
| 258 | + <x:Boolean x:Key="IsExpanded">False</x:Boolean> |
234 | 259 | <x:Boolean x:Key="IsPinned">False</x:Boolean>
|
235 | 260 | </scg:Dictionary>
|
236 | 261 | </sap:WorkflowViewStateService.ViewState>
|
|
0 commit comments