Skip to content

Commit

Permalink
Various comments and sequence name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Dunareanu committed Nov 4, 2017
1 parent 101cd89 commit 79c8c75
Show file tree
Hide file tree
Showing 11 changed files with 378 additions and 253 deletions.
Binary file modified Data/Config.xlsx
Binary file not shown.
Binary file added Documentation/REFramework documentation.pdf
Binary file not shown.
22 changes: 11 additions & 11 deletions Framework/GetAppCredentials.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<If Condition="[credentialFound]" DisplayName="If locally found" sap2010:WorkflowViewState.IdRef="If_3">
<If.Else>
<Sequence DisplayName="Private: Request and Store Credentials" sap2010:WorkflowViewState.IdRef="Sequence_5">
<ui:RequestCredential DisplayName="Request Credential" sap2010:WorkflowViewState.IdRef="RequestCredential_2" Message="[&quot;Please provide &quot;&quot;&quot; + in_Credential + &quot;&quot;&quot; access credentials&quot;]" Password="[stringPassword]" Result="[credentialFound]" Title="Hello! This is UiRobo" Username="[out_Username]" />
<ui:RequestCredential DisplayName="Request Credential" sap2010:WorkflowViewState.IdRef="RequestCredential_2" Message="[&quot;Please provide &quot;&quot;&quot; + in_Credential + &quot;&quot;&quot; access credentials&quot;]" Password="[stringPassword]" Result="[credentialFound]" Title="Hello! This is Robot" Username="[out_Username]" />
<If Condition="[Not credentialFound]" DisplayName="If cancelled" sap2010:WorkflowViewState.IdRef="If_5">
<If.Then>
<Throw DisplayName="Throw No Credentials" Exception="[new Exception(&quot;Credentials not supplied&quot;)]" sap2010:WorkflowViewState.IdRef="Throw_1" />
Expand Down Expand Up @@ -137,7 +137,7 @@
<TryCatch.Finally>
<Sequence DisplayName="Return" sap2010:WorkflowViewState.IdRef="Sequence_8" />
</TryCatch.Finally>
<sads:DebugSymbol.Symbol>d09DOlxVc2Vyc1xBbmRyZWlcRGVza3RvcFxSRUZcVWlQYXRoX1JFRnJhbWV3b3JrXEZyYW1ld29ya1xHZXRBcHBDcmVkZW50aWFscy54YW1sKAFmAXsBAk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ewState.ViewStateManager>
<sap2010:ViewStateManager>
Expand All @@ -146,27 +146,27 @@
<sap2010:ViewStateData Id="RequestCredential_2" sap:VirtualizedContainerService.HintSize="464,22.4" />
<sap2010:ViewStateData Id="Throw_1" sap:VirtualizedContainerService.HintSize="200,22.4" />
<sap2010:ViewStateData Id="AddCredential_2" sap:VirtualizedContainerService.HintSize="200,22.4" />
<sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="464,211.2" />
<sap2010:ViewStateData Id="Assign_15" sap:VirtualizedContainerService.HintSize="464,60.8" />
<sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="464,209.6" />
<sap2010:ViewStateData Id="Assign_15" sap:VirtualizedContainerService.HintSize="464,60" />
<sap2010:ViewStateData Id="InvokeMethod_1" sap:VirtualizedContainerService.HintSize="217.6,132.8" />
<sap2010:ViewStateData Id="ForEach`1_4" sap:VirtualizedContainerService.HintSize="464,267.2" />
<sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="486.4,806.4">
<sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="486.4,804">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="611.2,956.8" />
<sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="633.6,1144">
<sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="611.2,953.6" />
<sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="633.6,1140.8">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="If_4" sap:VirtualizedContainerService.HintSize="758.4,1294.4" />
<sap2010:ViewStateData Id="Catch`1_2" sap:VirtualizedContainerService.HintSize="764.8,1368.8">
<sap2010:ViewStateData Id="If_4" sap:VirtualizedContainerService.HintSize="758.4,1290.4" />
<sap2010:ViewStateData Id="Catch`1_2" sap:VirtualizedContainerService.HintSize="764.8,1360.8">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
Expand All @@ -181,7 +181,7 @@
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="TryCatch_2" sap:VirtualizedContainerService.HintSize="779.2,1610.4">
<sap2010:ViewStateData Id="TryCatch_2" sap:VirtualizedContainerService.HintSize="779.2,1601.6">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
Expand All @@ -190,7 +190,7 @@
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="GetCredentials_1" sap:VirtualizedContainerService.HintSize="819.2,1690.4" />
<sap2010:ViewStateData Id="GetCredentials_1" sap:VirtualizedContainerService.HintSize="819.2,1681.6" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
86 changes: 44 additions & 42 deletions Framework/GetTransactionData.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
xmlns:sd="clr-namespace:System.Data;assembly=System.Data"
xmlns:ui="http://schemas.uipath.com/workflow/activities"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="in_TransactionNumber" Type="InArgument(x:Int32)" />
<x:Property Name="in_Config" Type="InArgument(scg:Dictionary(x:String, x:Object))" />
<x:Property Name="out_TransactionItem" Type="OutArgument(ui:QueueItem)" />
<x:Property Name="out_TransactionID" Type="OutArgument(x:String)" />
<x:Property Name="out_TransactionField1" Type="OutArgument(x:String)" />
<x:Property Name="out_TransactionField2" Type="OutArgument(x:String)" />
<x:Property Name="out_TransactionID" Type="OutArgument(x:String)" />
<x:Property Name="io_TransactionData" Type="InOutArgument(sd:DataTable)" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
Expand Down Expand Up @@ -69,67 +71,67 @@
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>Microsoft.VisualStudio.Services.Common</AssemblyReference>
<AssemblyReference>System.Runtime.WindowsRuntime</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<Sequence sap2010:Annotation.AnnotationText="Description: Get data from spreadsheets, databases, email, web API or UiPath server queues. &#xA;If no new data, set transactionItem to Nothing&#xA;For a liniar process (not repetitive), set TransactionItem only for TransactionNumber 1 - first and only transaction" DisplayName="GetTransactionData" sap2010:WorkflowViewState.IdRef="Sequence_1">
<ui:GetQueueItem TimeoutMS="{x:Null}" DisplayName="Get Transaction Item" sap2010:WorkflowViewState.IdRef="GetQueueItem_1" QueueType="[in_Config(&quot;QueueName&quot;).ToString]" TransactionItem="[out_TransactionItem]" />
<Sequence sap2010:Annotation.AnnotationText="Write data to the added fields that identify the Transaction" DisplayName="Write Transaction info in Logging Fields" sap2010:WorkflowViewState.IdRef="Sequence_2">
<Assign sap2010:Annotation.AnnotationText="Must be unique for each transaction&#xA;The value should be changed into the unique field of the transaction" DisplayName="Assign TransactionID" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[out_TransactionID]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[now.ToString]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign TransactionField1" sap2010:WorkflowViewState.IdRef="Assign_2">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[out_TransactionField1]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[string.Empty]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign TransactionField1" sap2010:WorkflowViewState.IdRef="Assign_3">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[out_TransactionField2]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[string.Empty]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
<sads:DebugSymbol.Symbol>d0lDOlxfV09SS1xBY2FkZW15IDIuMFxVaVBhdGhfUkVGcmFtZXdvcmtcRnJhbWV3b3JrXEdldFRyYW5zYWN0aW9uRGF0YS54YW1sDkoDZw4CAQFLBUvhAQIBD0wFZRACAQJLiQFLtgECARJLxwFL3gECARBNB1QQAgELVQdcEAIBB10HZBACAQNSMlJAAgEOTzNPRgIBDFoyWkACAQpXM1dKAgEIYjJiQAIBBl8zX0oCAQQ=</sads:DebugSymbol.Symbol>
<Sequence sap2010:Annotation.AnnotationText="Description: Get data from spreadsheets, databases, email, web API or UiPath server queues. If no new data, set out_TransactionItem to Nothing. &#xD;&#xA;&#xD;&#xA;For a linear process (not repetitive), set out_TransactionItem only for in_TransactionNumber 1 - first and only transaction. &#xD;&#xA;&#xD;&#xA;If the process is repeatable, set io_TransactionData once for in_TransactionNumber 1, then assign a new out_TransactionItem by using the in_TransactionNumber to index io_TransactionData. Be aware that, at the end of the io_TransactionData collection, it is your responsibility to set out_TransactionItem to Nothing, thus ending the process." DisplayName="GetTransactionData" sap2010:WorkflowViewState.IdRef="Sequence_1">
<ui:GetQueueItem TimeoutMS="{x:Null}" DisplayName="Get Transaction Item" sap2010:WorkflowViewState.IdRef="GetQueueItem_1" QueueType="[in_Config(&quot;OrchestratorQueueName&quot;).ToString]" TransactionItem="[out_TransactionItem]" />
<If Condition="[out_TransactionItem isNot Nothing]" DisplayName="If a new Item is fetched Grab it's significant data for logging" sap2010:WorkflowViewState.IdRef="If_1">
<If.Then>
<Sequence sap2010:Annotation.AnnotationText="Write data to the added fields that identify the Transaction" DisplayName="Write Transaction info in Logging Fields" sap2010:WorkflowViewState.IdRef="Sequence_2">
<Assign DisplayName="Assign TransactionID" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[out_TransactionID]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[now.ToString]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign TransactionField1" sap2010:WorkflowViewState.IdRef="Assign_2">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[out_TransactionField1]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[string.Empty]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Assign TransactionField1" sap2010:WorkflowViewState.IdRef="Assign_4">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[out_TransactionField2]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[string.Empty]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Then>
</If>
<sads:DebugSymbol.Symbol>d3VDOlxVc2Vyc1xtaWhhaS5kdW5hcmVhbnVcR29vZ2xlIERyaXZlXFdvcmtzcGFjZVxVaVBhdGhcVGVtcGxhdGVzXFVpUGF0aF9SRUZyYW1ld29ya1xGcmFtZXdvcmtcR2V0VHJhbnNhY3Rpb25EYXRhLnhhbWwQTQNuDgIBAU4FTu0BAgERTwVsCgIBAk6JAU7CAQIBFE7TAU7qAQIBEk8TTzgCAQNRCWoUAgEEUgtZFAIBDVoLYRQCAQliC2kUAgEFVzZXRAIBEFQ3VEoCAQ5fNl9EAgEMXDdcTgIBCmc2Z0QCAQhkN2ROAgEG</sads:DebugSymbol.Symbol>
</Sequence>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
<sap2010:ViewStateData Id="GetQueueItem_1" sap:VirtualizedContainerService.HintSize="265.6,22.4" />
<sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="243.2,120.8">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="GetQueueItem_1" sap:VirtualizedContainerService.HintSize="464,22.4" />
<sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="243.2,60.8" />
<sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="243.2,60.8" />
<sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="243.2,60.8" />
<sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="265.6,490.4">
<sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="243.2,60.8" />
<sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="265.6,431.2">
<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>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="288,800.8">
<sap2010:ViewStateData Id="If_1" sap:VirtualizedContainerService.HintSize="464,582.4" />
<sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="486.4,957.6">
<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>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="GetTransactionData_1" sap:VirtualizedContainerService.HintSize="328,880.8" />
<sap2010:ViewStateData Id="GetTransactionData_1" sap:VirtualizedContainerService.HintSize="526.4,1037.6" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
6 changes: 3 additions & 3 deletions Framework/KillAllProcesses.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@
</Sequence>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
<sap2010:ViewStateData Id="LogMessage_1" sap:VirtualizedContainerService.HintSize="314.4,92.8" />
<sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="336.8,293.6">
<sap2010:ViewStateData Id="LogMessage_1" sap:VirtualizedContainerService.HintSize="313.6,92.8" />
<sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="336,293.6">
<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>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="CloseAllApplications_1" sap:VirtualizedContainerService.HintSize="376.8,373.6" />
<sap2010:ViewStateData Id="CloseAllApplications_1" sap:VirtualizedContainerService.HintSize="376,373.6" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
Loading

0 comments on commit 79c8c75

Please sign in to comment.