Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
d72362b
Change the order of where looking for the project name
extremihai Nov 7, 2017
731c5b0
Push the necessary Config data into CloseAllApplications workflow
extremihai Nov 7, 2017
3671eef
Add sample workflows for starting job in Orchestrator
extremihai Nov 14, 2017
512a481
Add XTRA samples for adding items to Orchestrator queue and sending o…
extremihai Nov 14, 2017
05c2c20
Get default project id from .json 'name' field in accord with 2017 ve…
extremihai Nov 14, 2017
0e6b37f
Use a single exception variable.
extremihai Nov 15, 2017
e0f8889
Annotate what values from Config the workflows are using
extremihai Nov 15, 2017
2e9304a
Add log transaction status message
extremihai Nov 15, 2017
7cee5c1
Change sample process error rates
extremihai Nov 15, 2017
d85c9d4
Add Xtras/OffloadQueue workflow sample for reassembling data into Exc…
extremihai Nov 20, 2017
9fef452
Reorganize code to add the Dispatcher Template samples
extremihai Nov 26, 2017
91d9e0c
index on light: 9fef452 Reorganize code to add the Dispatcher Templat…
extremihai Nov 28, 2017
ee42675
WIP on light: 9fef452 Reorganize code to add the Dispatcher Template …
extremihai Nov 28, 2017
401a560
Assemble the Dispatcher template
extremihai Dec 7, 2017
930b089
Update ReFrameWork project description
extremihai Dec 7, 2017
bc4d8d6
Add input file pattern support (e.g. Folder/*.xls*)
extremihai Jun 3, 2018
298799c
Add an asset to facilitate switching environments assets and queues
extremihai Jul 19, 2018
e2d235b
Moved application interaction to dedicated folder
extremihai Sep 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed Config.xlsx
Binary file not shown.
Binary file added Dispatcher/Config.xlsx
Binary file not shown.
10 changes: 10 additions & 0 deletions Dispatcher/EmailTemplate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Dear Human,
Process {0} completed successfully {1}.

Regards,
{2}
{3}

Cheers,
Mihai Tatu
www.UiPath.com
Binary file added Dispatcher/ExcelTemplate.xlsx
Binary file not shown.
103 changes: 103 additions & 0 deletions Dispatcher/FetchAttachments.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<Activity mc:Ignorable="sap sap2010 sads" x:Class="FetchAttachments" this:FetchAttachments.Config="[new Dictionary(of String, Object) from {{&quot;EmailFilter&quot;, &quot;&quot;}, {&quot;InboxFolder&quot;, &quot;Inbox&quot;}, {&quot;InputFolder&quot;, &quot;../TestData&quot;}}]"
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
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:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
xmlns:snm="clr-namespace:System.Net.Mail;assembly=System"
xmlns:this="clr-namespace:"
xmlns:ui="http://schemas.uipath.com/workflow/activities"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="Config" Type="InArgument(scg:Dictionary(x:String, x:Object))" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap2010:WorkflowViewState.IdRef>DownloadAttachments_1</sap2010:WorkflowViewState.IdRef>
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments="x:String">
<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>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>UiPath.Core</AssemblyReference>
<AssemblyReference>UiPath.Core.Activities</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>Microsoft.VisualStudio.Services.Common</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>System.Runtime.WindowsRuntime</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<Sequence DisplayName="FetchAttachments" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="scg:List(snm:MailMessage)" Name="messages" />
</Sequence.Variables>
<ui:LogMessage DisplayName="Log message" sap2010:WorkflowViewState.IdRef="LogMessage_1" Level="Info" Message="Checking email for attached files..." />
<ui:GetOutlookMailMessages Account="{x:Null}" TimeoutMS="{x:Null}" DisplayName="Get outlook mail messages" Filter="[Config(&quot;EmailFilter&quot;).ToString]" GetAttachements="False" sap2010:WorkflowViewState.IdRef="GetOutlookMailMessages_1" MailFolder="[Config(&quot;InboxFolder&quot;).ToString]" MarkAsRead="True" Messages="[messages]" OnlyUnreadMessages="True" Top="30" />
<ui:ForEach x:TypeArguments="snm:MailMessage" DisplayName="For each" sap2010:WorkflowViewState.IdRef="ForEach`1_2" Values="[messages]">
<ui:ForEach.Body>
<ActivityAction x:TypeArguments="snm:MailMessage">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="snm:MailMessage" Name="email" />
</ActivityAction.Argument>
<ui:SaveMailAttachments Attachments="{x:Null}" DisplayName="Save Attachments" FolderPath="[Config(&quot;InputFolder&quot;).ToString]" sap2010:WorkflowViewState.IdRef="SaveMailAttachments_1" Message="[email]" />
</ActivityAction>
</ui:ForEach.Body>
</ui:ForEach>
<sads:DebugSymbol.Symbol>dz5DOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXEZldGNoQXR0YWNobWVudHMueGFtbA4BYwGYAgECRQNWDgIBAUkFSZsBAgESSgVK/AICAQpLBVQSAgECSXJJmAECARNK9QJK+QICARFKd0qjAQIBD0rKAkrWAgIBDUqCAkquAgIBC0t/S4sBAgEIUQtR3QECAQNR0QFR2gECAQZRZFGQAQIBBA==</sads:DebugSymbol.Symbol>
</Sequence>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
<sap2010:ViewStateData Id="LogMessage_1" sap:VirtualizedContainerService.HintSize="330,93" />
<sap2010:ViewStateData Id="GetOutlookMailMessages_1" sap:VirtualizedContainerService.HintSize="330,22" />
<sap2010:ViewStateData Id="SaveMailAttachments_1" sap:VirtualizedContainerService.HintSize="314,87" />
<sap2010:ViewStateData Id="ForEach`1_2" sap:VirtualizedContainerService.HintSize="330,222" />
<sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="352,541">
<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="DownloadAttachments_1" sap:VirtualizedContainerService.HintSize="392,621" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<AssemblyReference>TimeSpan2</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<TryCatch sap2010:Annotation.AnnotationText="Retrieve credentials from Orchestrator assets or from Credential Manager, asking for them from user if not found" DisplayName="Private: Try Get Credential Asset" sap2010:WorkflowViewState.IdRef="TryCatch_2">
<TryCatch sap2010:Annotation.AnnotationText="Retrieve credentials from Orchestrator assets or from Credential Manager, asking for them from user if not found&#xA;&#xA;Using Credential returns Username and Password" DisplayName="Private: Try Get Credential Asset" sap2010:WorkflowViewState.IdRef="TryCatch_2">
<TryCatch.Variables>
<Variable x:TypeArguments="x:String" Name="stringPassword" />
</TryCatch.Variables>
Expand All @@ -95,7 +95,7 @@
<ui:RequestCredential DisplayName="Request Credential" sap2010:WorkflowViewState.IdRef="RequestCredential_2" Message="[&quot;Please provide &quot;&quot;&quot; + Credential + &quot;&quot;&quot; access credentials&quot;]" Password="[stringPassword]" Result="[credentialFound]" Title="Hello! This is Robot" Username="[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" />
<Throw DisplayName="Raise No Credentials" Exception="[new Exception(&quot;Credentials not supplied&quot;)]" sap2010:WorkflowViewState.IdRef="Throw_1" />
</If.Then>
<If.Else>
<ui:AddCredential CredentialType="Generic" DisplayName="Add Credential" sap2010:WorkflowViewState.IdRef="AddCredential_2" Password="[stringPassword]" PersistanceType="Enterprise" Target="[Credential]" Username="[Username]" />
Expand Down Expand Up @@ -136,7 +136,7 @@
<TryCatch.Finally>
<Sequence DisplayName="Return" sap2010:WorkflowViewState.IdRef="Sequence_8" />
</TryCatch.Finally>
<sads:DebugSymbol.Symbol>d1dDOlxVc2Vyc1xNaWhhaVRhdHVcRG9jdW1lbnRzXFVpUGF0aFxbQVhBXUZ1bmRTd2l0Y2hpbmdcRnJhbWV3b3JrXEdldEFwcENyZWRlbnRpYWxzLnhhbWwoAWMBeAECSAOMAQ4CAQFNB03bAQIBN4kBB4kBVQIBNlULhAEQAgECTT1NSwIBPE3MAU3YAQIBOk22AU3CAQIBOFUZVUcCAQNXD4IBGgIBBlsRW5oCAgEtXBGBARYCAQdb8wFbgQICATRbiwJblwICATJb2AFb6wECATBbpwFbswECAS5cH1wyAgEIXhV/IAIBCl8XX98CAgEjYBdnHAIBF2gXbyACARNwF34kAgELX4wBX/IBAgErX9ACX9wCAgEpX5YCX6kCAgEnX7ACX8YCAgEmX/wBX44CAgEkYCVgPAIBGGIbYrMBAgEhZRtl/AECARptSW1dAgEWakpqVAIBFHCUAXCyAQIBEXYdeywCAQxiT2KGAQIBImXVAWXjAQIBH2XtAWX5AQIBHWWeAWWwAQIBG3pEekkCAQ94T3hZAgEN</sads:DebugSymbol.Symbol>
<sads:DebugSymbol.Symbol>d0hDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcRnJhbWV3b3JrL0dldEFwcENyZWRlbnRpYWxzLnhhbWwoAWMBeAECSAOMAQ4CAQFNB03bAQIBN4kBB4kBVQIBNlULhAEQAgECTT1NSwIBPE3MAU3YAQIBOk22AU3CAQIBOFUZVUcCAQNXD4IBGgIBBlsRW5oCAgEtXBGBARYCAQdb8wFbgQICATRbiwJblwICATJb2AFb6wECATBbpwFbswECAS5cH1wyAgEIXhV/IAIBCl8XX98CAgEjYBdnHAIBF2gXbyACARNwF34kAgELX4wBX/IBAgErX9ACX9wCAgEpX5YCX6kCAgEnX7ACX8YCAgEmX/wBX44CAgEkYCVgPAIBGGIbYrMBAgEhZRtl/AECARptSW1dAgEWakpqVAIBFHCUAXCyAQIBEXYdeywCAQxiT2KGAQIBImXVAWXjAQIBH2XtAWX5AQIBHWWeAWWwAQIBG3pEekkCAQ94T3hZAgEN</sads:DebugSymbol.Symbol>
</TryCatch>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
Expand All @@ -145,30 +145,30 @@
<sap2010:ViewStateData Id="RequestCredential_2" sap:VirtualizedContainerService.HintSize="464,22" />
<sap2010:ViewStateData Id="Throw_1" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="AddCredential_2" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="464,208" />
<sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="464,210" />
<sap2010:ViewStateData Id="Assign_15" sap:VirtualizedContainerService.HintSize="464,60" />
<sap2010:ViewStateData Id="InvokeMethod_1" sap:VirtualizedContainerService.HintSize="218,132" />
<sap2010:ViewStateData Id="ForEach`1_4" sap:VirtualizedContainerService.HintSize="464,266" />
<sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="486,800">
<sap2010:ViewStateData Id="InvokeMethod_1" sap:VirtualizedContainerService.HintSize="218.5,134" />
<sap2010:ViewStateData Id="ForEach`1_4" sap:VirtualizedContainerService.HintSize="464,269" />
<sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="486,805">
<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,948" />
<sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="633,1134">
<sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="611,955" />
<sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="633,1141">
<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,1284" />
<sap2010:ViewStateData Id="Catch`1_2" sap:VirtualizedContainerService.HintSize="404,22">
<sap2010:ViewStateData Id="If_4" sap:VirtualizedContainerService.HintSize="758,1291" />
<sap2010:ViewStateData Id="Catch`1_2" sap:VirtualizedContainerService.HintSize="764,1361">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
Expand All @@ -180,7 +180,7 @@
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="TryCatch_2" sap:VirtualizedContainerService.HintSize="418,336">
<sap2010:ViewStateData Id="TryCatch_2" sap:VirtualizedContainerService.HintSize="778,1587">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
Expand All @@ -189,7 +189,7 @@
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="GetCredentials_1" sap:VirtualizedContainerService.HintSize="458,416" />
<sap2010:ViewStateData Id="GetCredentials_1" sap:VirtualizedContainerService.HintSize="818,1667" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
Loading