diff --git a/Config.xlsx b/Config.xlsx deleted file mode 100644 index 3c1c4d6..0000000 Binary files a/Config.xlsx and /dev/null differ diff --git a/Dispatcher/Config.xlsx b/Dispatcher/Config.xlsx new file mode 100644 index 0000000..da2a357 Binary files /dev/null and b/Dispatcher/Config.xlsx differ diff --git a/Dispatcher/EmailTemplate.txt b/Dispatcher/EmailTemplate.txt new file mode 100644 index 0000000..b34fc2c --- /dev/null +++ b/Dispatcher/EmailTemplate.txt @@ -0,0 +1,10 @@ +Dear Human, +Process {0} completed successfully {1}. + +Regards, +{2} +{3} + +Cheers, +Mihai Tatu +www.UiPath.com diff --git a/Dispatcher/ExcelTemplate.xlsx b/Dispatcher/ExcelTemplate.xlsx new file mode 100644 index 0000000..4190199 Binary files /dev/null and b/Dispatcher/ExcelTemplate.xlsx differ diff --git a/Dispatcher/FetchAttachments.xaml b/Dispatcher/FetchAttachments.xaml new file mode 100644 index 0000000..2e9cbd2 --- /dev/null +++ b/Dispatcher/FetchAttachments.xaml @@ -0,0 +1,103 @@ + + + + + + + + DownloadAttachments_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + Microsoft.VisualStudio.Services.Common + System.ComponentModel.Composition + System.Runtime.WindowsRuntime + + + + + + + + + + + + + + + + + + + dz5DOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXEZldGNoQXR0YWNobWVudHMueGFtbA4BYwGYAgECRQNWDgIBAUkFSZsBAgESSgVK/AICAQpLBVQSAgECSXJJmAECARNK9QJK+QICARFKd0qjAQIBD0rKAkrWAgIBDUqCAkquAgIBC0t/S4sBAgEIUQtR3QECAQNR0QFR2gECAQZRZFGQAQIBBA== + + + + + + + + + + + True + + + + + + + \ No newline at end of file diff --git a/Framework/GetAppCredentials.xaml b/Dispatcher/Framework/GetAppCredentials.xaml similarity index 90% rename from Framework/GetAppCredentials.xaml rename to Dispatcher/Framework/GetAppCredentials.xaml index 8c32819..4ef0d79 100644 --- a/Framework/GetAppCredentials.xaml +++ b/Dispatcher/Framework/GetAppCredentials.xaml @@ -69,7 +69,7 @@ TimeSpan2 - + @@ -95,7 +95,7 @@ - + @@ -136,7 +136,7 @@ - d1dDOlxVc2Vyc1xNaWhhaVRhdHVcRG9jdW1lbnRzXFVpUGF0aFxbQVhBXUZ1bmRTd2l0Y2hpbmdcRnJhbWV3b3JrXEdldEFwcENyZWRlbnRpYWxzLnhhbWwoAWMBeAECSAOMAQ4CAQFNB03bAQIBN4kBB4kBVQIBNlULhAEQAgECTT1NSwIBPE3MAU3YAQIBOk22AU3CAQIBOFUZVUcCAQNXD4IBGgIBBlsRW5oCAgEtXBGBARYCAQdb8wFbgQICATRbiwJblwICATJb2AFb6wECATBbpwFbswECAS5cH1wyAgEIXhV/IAIBCl8XX98CAgEjYBdnHAIBF2gXbyACARNwF34kAgELX4wBX/IBAgErX9ACX9wCAgEpX5YCX6kCAgEnX7ACX8YCAgEmX/wBX44CAgEkYCVgPAIBGGIbYrMBAgEhZRtl/AECARptSW1dAgEWakpqVAIBFHCUAXCyAQIBEXYdeywCAQxiT2KGAQIBImXVAWXjAQIBH2XtAWX5AQIBHWWeAWWwAQIBG3pEekkCAQ94T3hZAgEN + d0hDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcRnJhbWV3b3JrL0dldEFwcENyZWRlbnRpYWxzLnhhbWwoAWMBeAECSAOMAQ4CAQFNB03bAQIBN4kBB4kBVQIBNlULhAEQAgECTT1NSwIBPE3MAU3YAQIBOk22AU3CAQIBOFUZVUcCAQNXD4IBGgIBBlsRW5oCAgEtXBGBARYCAQdb8wFbgQICATRbiwJblwICATJb2AFb6wECATBbpwFbswECAS5cH1wyAgEIXhV/IAIBCl8XX98CAgEjYBdnHAIBF2gXbyACARNwF34kAgELX4wBX/IBAgErX9ACX9wCAgEpX5YCX6kCAgEnX7ACX8YCAgEmX/wBX44CAgEkYCVgPAIBGGIbYrMBAgEhZRtl/AECARptSW1dAgEWakpqVAIBFHCUAXCyAQIBEXYdeywCAQxiT2KGAQIBImXVAWXjAQIBH2XtAWX5AQIBHWWeAWWwAQIBG3pEekkCAQ94T3hZAgEN @@ -145,30 +145,30 @@ - + - - - + + + True - - + + True - - + + - False + True False @@ -180,7 +180,7 @@ - + True @@ -189,7 +189,7 @@ - + \ No newline at end of file diff --git a/Framework/InitiAllSettings.xaml b/Dispatcher/Framework/InitiAllSettings.xaml similarity index 74% rename from Framework/InitiAllSettings.xaml rename to Dispatcher/Framework/InitiAllSettings.xaml index 097384e..3324acf 100644 --- a/Framework/InitiAllSettings.xaml +++ b/Dispatcher/Framework/InitiAllSettings.xaml @@ -70,6 +70,7 @@ System.ComponentModel.Composition TimeSpan2 UiPath.Excel.Activities + System.Runtime.WindowsRuntime @@ -82,63 +83,72 @@ [new Dictionary(of String, object)] - - - - - - - - - - - - - - - - - - - - - - - - [settings(row("Name").ToString.Trim)] - - - [row("Value")] - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + [projectTag] + + + [If(projectData.Contains("id"": """), "id"": """, "name"": """)] + + + + + [settings("ProcessName")] + + + [projectData.Split({projectTag}, 2, StringSplitOptions.RemoveEmptyEntries)(1).Split("""".ToCharArray, 2)(0)] + + + + + + + + + + + + + + + + + + + + + + + + + [settings(row("Name").ToString.Trim)] + + + [row("Value")] + + + + + + + + + + + - + @@ -197,56 +207,44 @@ - - - - - - - - [settings("ProcessName")] - - - [projectData.Split({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2cCATxbIFsvAgE6YTJhcgIBN14zXj8CATVpMmmeAQIBM2YzZkwCATF3DXfIAQIBJngNjAEdAgEelwELlwG+AQIBFpgBC8QBGwIBBs0Be80BngECAQR3NndFAgErd6ABd6kBAgEpd7cBd8UBAgEneCZ4NQIBJH4TiQEYAgEflwE0lwE+AgEalwGXAZcBnwECARmXAa0BlwG7AQIBF5gBJJgBLgIBFJ4BEcEBHAIBB34hfl4CASCAAReHASACASGgARWxASACAQy5ARm9AR4CAQiFAUKFAVACASOCAUOCAWgCASKkAReoASoCARCpARewASACAQ25ASe5AWQCAQm7AR27AfkBAgEKpgFKpgFWAgESpAFIpAFrAgERrgFCrgFOAgEPqwFDqwFjAgEOuwGKAbsB9gECAQs= - - - - - - - + + + + + + True + True False - + + + + - False + True False - - + - False + True False - + False @@ -281,8 +279,8 @@ - - + + True @@ -290,7 +288,7 @@ - + True @@ -307,26 +305,15 @@ - - - - True - False - - - - - - + - True - True + False False - + True @@ -334,7 +321,7 @@ - + \ No newline at end of file diff --git a/Dispatcher/Main.xaml b/Dispatcher/Main.xaml new file mode 100644 index 0000000..7212415 --- /dev/null +++ b/Dispatcher/Main.xaml @@ -0,0 +1,109 @@ + + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + Microsoft.VisualStudio.Services.Common + + + + + + + + + [Config] + [{"Dispatch"}] + + + + + [config] + + + + + [config] + + + + + [config] + + + dzJDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE1haW4ueGFtbA47A1UOAgEBPwVEHQIBDkUFSR0CAQpKBU4dAgEGTwVTHQIBAkJHQlUCARJBXkFmAgEQP78BP+ABAgEPR1lHYQIBDEW5AUXMAQIBC0xZTGECAQhKvQFK1AECAQdRWVFhAgEET7gBT8oBAgED + + + + + + + False + True + + + + + + + + + + True + + + + + + + \ No newline at end of file diff --git a/Dispatcher/OffloadQueue.xaml b/Dispatcher/OffloadQueue.xaml new file mode 100644 index 0000000..5f90fd5 --- /dev/null +++ b/Dispatcher/OffloadQueue.xaml @@ -0,0 +1,557 @@ + + + + + + + + Main_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Framework.Activities + System.Windows.Markup + UiPath.Enterprise.Activities.Queues + System.Xml.Serialization + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Framework.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + System.ComponentModel.Composition + TimeSpan2 + UiPath.Enterprise.Activities + UiPath.Excel.Activities + System.Data.DataSetExtensions + System.Runtime.WindowsRuntime + Microsoft.VisualStudio.Services.Common + + + + + + + + + + + + + + + + + + + + + + [Config] + [{"Dispatch"}] + + + + + + + [outputPath] + + + [Config("OutputPath").ToString] + + + + + [fileName] + + + [If(outputPath.Contains("["), outputPath.Split("[".ToCharArray)(1).Split("]".ToCharArray)(0), Nothing)] + + + + + [outputSheet] + + + [If(Config.Keys.Contains("OutputSheet"), Config("OutputSheet").ToString, "Sheet1")] + + + + + [templatePath] + + + [If(Config.Keys.Contains("OutputTemplate"), Config("OutputTemplate").ToString, Nothing)] + + + + + + + + + + [useTemplate] + + + [transData.Columns.Count > 0] + + + + + + + + + + + + + [useTemplate] + + + False + + + + + + + + + + + + + + + + + [transCount] + + + [transCount + 1] + + + + + [filePath] + + + [outputPath.Replace("["+fileName+"]", transItem.SpecificContent(fileName).ToString)] + + + + + [fileIndex(filePath)] + + + [If(fileIndex.Keys.Contains(filePath), fileIndex(filePath) + 1, 1)] + + + + + + + + + + + [transData] + + + [new DataTable()] + + + + + + + [transData] + + + + + + + + + + + + + + + + + + + + + + + + + [dataRow] + + + [transData.NewRow] + + + + + + + + + + + + + [dataRow(column)] + + + [transItem.SpecificContent(column.ColumnName)] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Config] + [filePath] + [If(transData.Columns.Contains("Status"), fileData.Select("[Status]='Complete'").Count.ToString+"/"+fileData.Rows.Count.ToString, Nothing)] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [transFailed] + + + [transFailed + 1] + + + + + + + + + + + + + dzpDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE9mZmxvYWRRdWV1ZS54YW1sigFLA9kCDgIBAVBNUHECAQRRM1E2AgEDVTVVPAIBAlgFWIsBAwG+AVkFhAEQAwGiAYUBBaQBEAMBkQGlAQWlAeIBAwGMAaYBBdYCDQIBCNcCBdcCugECAQVYc1iIAQMBvwFaB2MMAwG2AWQHaxADAbEBbAdzEAMBqwF0B3sQAwGnAXwHgwEQAwGjAYcBCZEBFAMBlgGZAQ2gARYDAZIBpQGVAaUBwQEDAY8BpQHSAaUB3wEDAY0BpwEH1QISAgEKpgFipgF9AgEJ1wJ21wK3AQIBBloVWioDAbcBXAthIwMBuQFpMmlRAwG0AWYzZj8DAbIBcTJxmQEDAa4BbjNuPQMBrAF5MnmFAQMBqgF2M3ZAAwGoAYEBMoEBigEDAaYBfjN+QQMBpAGIAQuIAcsBAwGbAYkBC5ABFAMBlwGeATmeAT4DAZUBmwE6mwFHAw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5gEd5gHMAgIBboMCRIMCcgIBY4ACRYACVgIBYqMCGaMCuQICATWkAhmqAjECAS6rAhmrArsCAgEp5gG/AeYBygECAXPmAZAB5gGZAQIBceYBpAHmAbEBAgFvowKuAaMCpwICATaoAlOoAt4BAgE0pgJtpgJ1AgEypALRAaQC5wECATGnAlWnAl8CAS+rAjarAjwCAS2rAkmrAsIBAgEsqwKsAqsCuAICASo= + + + + + + + + False + True + + + + + + + False + + + + + + + + + + + False + True + + + + + + + + + True + + + + + + + + False + False + + + + + + + False + True + + + + + + + + + + + + + True + False + + + + + + + + + + True + False + + + + + + + + + + True + False + + + + + + + + False + True + True + + + + + + + + + True + False + + + + + + + + False + True + + + + + + + + + + + True + + + + + + + + True + + + + + + + + + True + False + + + + + + + + + + True + + + + + + + False + False + + + + + + + + True + False + + + + + + + True + False + + + + + + + True + False + + + + + + + False + False + + + + + + + False + True + + + + + + \ No newline at end of file diff --git a/Dispatcher/OnloadQueue.xaml b/Dispatcher/OnloadQueue.xaml new file mode 100644 index 0000000..93d891f --- /dev/null +++ b/Dispatcher/OnloadQueue.xaml @@ -0,0 +1,155 @@ + + + + + + + + AddDataToQueue_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + System.Xml.Serialization + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ComponentModel.Composition + System.ServiceModel + System.Runtime.WindowsRuntime + System.Data.DataSetExtensions + Microsoft.VisualStudio.Services.Common + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [row("Name").ToString] + [row("Age").ToString] + [new FIleInfo(filePath).Name] + [String.Format("{0}/{1}", 1+dataTable.Rows.IndexOf(row), dataTable.Rows.Count)] + + + + + + + + + + + + dzlDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE9ubG9hZFF1ZXVlLnhhbWwSAVkB7AEBAkcDdhACAQFHggFH1gECARVNCXIkAgECTaQBTbABAgETUw9vGgIBA1cRXSUCAQ5eEW4hAgEEVy5XOwIBEVoXWkYCARBXmAFXoAECAQ9eKl43AgEMZBdrKQIBBWhPaGwCAQtnTmdjAgEKZMUBZPABAgEIaVBpnwECAQdmT2ZlAgEG + + + + + + + + + + True + + + + + + + False + + + + + + + False + + + + + + + False + True + + + + + + \ No newline at end of file diff --git a/Dispatcher/Orchestrator/CloseApp.xaml b/Dispatcher/Orchestrator/CloseApp.xaml new file mode 100644 index 0000000..9111771 --- /dev/null +++ b/Dispatcher/Orchestrator/CloseApp.xaml @@ -0,0 +1,91 @@ + + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + UiPath.Terminal + UiPath.Terminal.Service + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ComponentModel.Composition + System.ServiceModel + UiPath.Terminal + + + + + + + + + + + + + + + d0NDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE9yY2hlc3RyYXRvclxDbG9zZUFwcC54YW1sCz0DSg4CAQE+BUIdAgEJQwVHGwIBBUgFSLIBAgECPiw+MgIBCz6vAT7JAQIBCkVKRXYCAQhFgQFFhwECAQdDKkMwAgEGSDhIPgIBBEilAUivAQIBAw== + + + + + + + + + + True + True + + + + + + + \ No newline at end of file diff --git a/Dispatcher/Orchestrator/LogOut.xaml b/Dispatcher/Orchestrator/LogOut.xaml new file mode 100644 index 0000000..0370ec6 --- /dev/null +++ b/Dispatcher/Orchestrator/LogOut.xaml @@ -0,0 +1,111 @@ + + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + d0FDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE9yY2hlc3RyYXRvclxMb2dPdXQueGFtbAo4A18aAgEBOEE4RwIBAjoHWRICAQY4uAE4vwECAQNcSFycAQIBBVynAVytAQIBBDsJSRQCAQlKCVgUAgEHR2NHtwECAQpWY1bZAQIBCA== + + + + + + + + + True + + + + + + + + \ No newline at end of file diff --git a/Dispatcher/Orchestrator/OpenApp.xaml b/Dispatcher/Orchestrator/OpenApp.xaml new file mode 100644 index 0000000..d4b8c99 --- /dev/null +++ b/Dispatcher/Orchestrator/OpenApp.xaml @@ -0,0 +1,176 @@ + + + + + + + + OpenRLS_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + Microsoft.VisualBasic.CompilerServices + UiPath.Terminal + UiPath.Terminal.Service + System.Security + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + System.ComponentModel.Composition + UiPath.Terminal + Microsoft.VisualStudio.Services.Common + System.Runtime.WindowsRuntime + + + + + + + + + + + + + + + + [username] + [credential] + [password] + + + + d0JDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE9yY2hlc3RyYXRvclxPcGVuQXBwLnhhbWweAVEBqQIBAkoDkQEOAgEBTjROZgIBAlAFVB0CASNVBVsdAgEbXAWPARYCAQRQLFAyAgElULEBUM0BAgEkWENYTwIBIVdCV0wCAR9ZSVlTAgEdVb4BVeABAgEcXMsBXPsBAgEZYguMARYCAQVjDWclAgEWaA1ohQECARVpDW0bAgEUbg1yGwIBEHMNdxsCAQx4DXwhAgEIfQ2LARgCAQZjNGM6AgEYY7cBY9EBAgEXcGdwlwECARNuqwJu3gICARF1Z3WdAQIBD3OxAnO9AgIBDXpnepkBAgELeJcCeKMCAgEJiQFniQGYAQIBBw== + + + + + + + + + + + + + + + + True + + + + + + + + True + True + + + + + + + \ No newline at end of file diff --git a/Dispatcher/Orchestrator/StartJob.2017.1.xaml b/Dispatcher/Orchestrator/StartJob.2017.1.xaml new file mode 100644 index 0000000..ff65d3d --- /dev/null +++ b/Dispatcher/Orchestrator/StartJob.2017.1.xaml @@ -0,0 +1,179 @@ + + + + + + + + StartOrchestratorJob_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + Microsoft.VisualStudio.Services.Common + System.ComponentModel.Composition + System.Runtime.WindowsRuntime + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + d0NDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXE9yY2hlc3RyYXRvclxTdGFydEpvYi54YW1sGAFrAdEBAQJEA5cBDgIBAUY0RmACAQJIBZUBFwIBBEjoAUiWAgIBGk4LkgEWAgEFTw1dGAIBGF4NbBgCARZtDXQYAgETdQ15GwIBD3oNgQEYAgELggENiQEYAgEIigENkQEYAgEGW2dbkwECARlqZ2qcAQIBF3JncqUBAgEVbU9tVAIBFHdnd6wBAgESdacCdbICAgEQf2d/rwECAQ16T3pVAgEMhwFnhwGhAgIBCoIBT4IBVAIBCY8BZ48BlAECAQc= + + + + + + + + + + + + + + True + + + + + + + + True + + + + + + + \ No newline at end of file diff --git a/Xtras/SendStatusEmail.xaml b/Dispatcher/SendStatusEmail.xaml similarity index 83% rename from Xtras/SendStatusEmail.xaml rename to Dispatcher/SendStatusEmail.xaml index 97a1bff..e62a37c 100644 --- a/Xtras/SendStatusEmail.xaml +++ b/Dispatcher/SendStatusEmail.xaml @@ -1,4 +1,4 @@ - - - + + @@ -69,16 +69,17 @@ System.Runtime.WindowsRuntime - + + [Config] - [{"Settings", "Xtras"}] + [{"Dispatch"}] @@ -89,18 +90,21 @@ [emailMessage] - [String.Format(emailMessage, Config("ProcessName"), If(ProcessError is Nothing, "completed successfully", "ended with error"), If(ProcessError is Nothing, ProcessDetail, ProcessError), Config("RobotName").ToString + Environment.NewLine + "@"+System.Net.Dns.GetHostName)] + [String.Format(emailMessage, Config("ProcessName"), Detail, Config("RobotName"), "@"+System.Net.Dns.GetHostName)] - + - + + [FilePath] + - dzhDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xYdHJhc1xTZW5kU3RhdHVzRW1haWwueGFtbBQBYQFrAQQBjwEBmQEBAwG+AQHUAQECSANlDgIBAUwFVQoCARJWBVa7AQIBDVcFXg4CAQlfBWMaAgECTBNMKAIBE04JUyECARVWWVaHAQIBEFYeVi4CAQ5cMFy+AgIBDFkxWT8CAQpfxQJf7wICAQdfel+KAQIBBV+SAl/BAgIBA1FLUWICARlQYlBqAgEXTsEBTuIBAgEW + dz1DOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xEaXNwYXRjaGVyXFNlbmRTdGF0dXNFbWFpbC54YW1sFwGzAQHIAQEEAWEBawEDAYsBAZUBAQJIA2gOAgEBTAVMkgECASBNBVYKAgEYVwVXuwECARNYBV8OAgELYAVmGgIBAkxyTI8BAgEhTRNNKAIBGU8JVCECARtXWVeHAQIBFlceVy4CARRdMF2hAQIBDloxWj8CAQxgwwJg6wICAQljMmM8AgEHYHpgigECAQVgkgJgvwICAQNSS1JZAgEfUWJRagIBHU/BAU/iAQIBHA== + @@ -113,15 +117,14 @@ - + True - True - + \ No newline at end of file diff --git a/Dispatcher/project.json b/Dispatcher/project.json new file mode 100644 index 0000000..e6c4bc2 --- /dev/null +++ b/Dispatcher/project.json @@ -0,0 +1,12 @@ +{ + "description": "Robotic Enterprise Framework Dispatcher", + "version": "2016.2.6274.33252", + "main": "Main.xaml", + "id": "RFW-Dispatcher", + "dependencies": {}, + "configurationOptions": {}, + "excludedData": [ + "Private:*", + "*password*" + ] +} \ No newline at end of file diff --git a/Errors/placeholder.png b/Errors/placeholder.png deleted file mode 100644 index 53fd750..0000000 Binary files a/Errors/placeholder.png and /dev/null differ diff --git a/Notepad/CloseApp.xaml b/Performer/Applications/Notepad/CloseApp.xaml similarity index 100% rename from Notepad/CloseApp.xaml rename to Performer/Applications/Notepad/CloseApp.xaml diff --git a/Notepad/OpenApp.xaml b/Performer/Applications/Notepad/OpenApp.xaml similarity index 91% rename from Notepad/OpenApp.xaml rename to Performer/Applications/Notepad/OpenApp.xaml index f4382d3..cb30c14 100644 --- a/Notepad/OpenApp.xaml +++ b/Performer/Applications/Notepad/OpenApp.xaml @@ -1,4 +1,4 @@ -System.Runtime.WindowsRuntime - + @@ -90,6 +90,7 @@ [password] + @@ -121,12 +122,13 @@ - dzJDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xOb3RlcGFkXE9wZW5BcHAueGFtbBgBUQGEAgECSgN9DgIBAU40TmICAQRPNE9gAgECUQVVHQIBHVYFXB0CARVdBXsaAgEGUSxRMgIBH1GxAVHIAQIBHllDWU8CARtYQlhMAgEZWklaUwIBF1a+AVbgAQIBFl34AV27AgIBFF2uAV26AQIBEmMLeBYCAQdkDWgbAgERaQ1tGwIBDW4NciECAQlzDXcdAgEIa2drpAECARBpnAJpvgICAQ5wZ3CkAQIBDG6GAm6SAgIBCg== + dzxDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcTm90ZXBhZFxPcGVuQXBwLnhhbWwaAVEB9gEBAkoDfg4CAQFONE5iAgEETzRPYAIBAlEFVR0CAR9WBVwdAgEXXQVdjQECARVeBXwaAgEGUSxRMgIBIVGxAVHIAQIBIFlDWU8CAR1YQlhMAgEbWklaUwIBGVa+AVbgAQIBGF1yXYoBAgEWXvgBXrsCAgEUXq4BXroBAgESZAt5FgIBB2UNaRsCARFqDW4bAgENbw1zIQIBCXQNeB0CAQhsZ2ykAQIBEGqcAmq+AgIBDnFncaQBAgEMb4YCb5ICAgEK + @@ -146,7 +148,7 @@ - + True @@ -154,7 +156,7 @@ - + \ No newline at end of file diff --git a/Performer/Config.xlsx b/Performer/Config.xlsx new file mode 100644 index 0000000..19ab67e Binary files /dev/null and b/Performer/Config.xlsx differ diff --git a/Framework/CloseAllApplications.xaml b/Performer/Framework/CloseAllApplications.xaml similarity index 89% rename from Framework/CloseAllApplications.xaml rename to Performer/Framework/CloseAllApplications.xaml index cb78d90..64a2a6b 100644 --- a/Framework/CloseAllApplications.xaml +++ b/Performer/Framework/CloseAllApplications.xaml @@ -65,14 +65,14 @@ System.Runtime.WindowsRuntime - - + + - + @@ -80,13 +80,13 @@ - d1dDOlxVc2Vyc1xNaWhhaVRhdHVcRG9jdW1lbnRzXFVpUGF0aFxSZUZyYW1lV29ya1wyLjBcRnJhbWV3b3JrXENsb3NlQWxsQXBwbGljYXRpb25zLnhhbWwGAVsBvAEBAkQDVA4CAQFFBVISAgECRY0BRYQCAgEGSwtPIwIBA0u8AUvQAQIBBA== + d0tDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcRnJhbWV3b3JrXENsb3NlQWxsQXBwbGljYXRpb25zLnhhbWwGAVsBvAEBAkQDVA4CAQFFBVISAgECRY0BRYICAgEFSwtPIwIBA0u8AUv5AQIBBA== - + True @@ -94,7 +94,7 @@ - + \ No newline at end of file diff --git a/Performer/Framework/GetAppCredentials.xaml b/Performer/Framework/GetAppCredentials.xaml new file mode 100644 index 0000000..4ef0d79 --- /dev/null +++ b/Performer/Framework/GetAppCredentials.xaml @@ -0,0 +1,195 @@ + + + + + + + + + + GetCredentials_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Framework.Activities + System.Windows.Markup + System.Security + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Framework.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + System.ComponentModel.Composition + TimeSpan2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Password] + + + [new SecureString()] + + + + + + + + + + + [Password] + + [key] + + + + + + + + + + + + + + + + + d0hDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcRnJhbWV3b3JrL0dldEFwcENyZWRlbnRpYWxzLnhhbWwoAWMBeAECSAOMAQ4CAQFNB03bAQIBN4kBB4kBVQIBNlULhAEQAgECTT1NSwIBPE3MAU3YAQIBOk22AU3CAQIBOFUZVUcCAQNXD4IBGgIBBlsRW5oCAgEtXBGBARYCAQdb8wFbgQICATRbiwJblwICATJb2AFb6wECATBbpwFbswECAS5cH1wyAgEIXhV/IAIBCl8XX98CAgEjYBdnHAIBF2gXbyACARNwF34kAgELX4wBX/IBAgErX9ACX9wCAgEpX5YCX6kCAgEnX7ACX8YCAgEmX/wBX44CAgEkYCVgPAIBGGIbYrMBAgEhZRtl/AECARptSW1dAgEWakpqVAIBFHCUAXCyAQIBEXYdeywCAQxiT2KGAQIBImXVAWXjAQIBH2XtAWX5AQIBHWWeAWWwAQIBG3pEekkCAQ94T3hZAgEN + + + + + + + + + + + + + + + + True + + + + + + + + True + + + + + + + + True + False + + + + + + + True + + + + + + + True + False + True + + + + + + + \ No newline at end of file diff --git a/Framework/GetErrorDescription.xaml b/Performer/Framework/GetErrorDescription.xaml similarity index 100% rename from Framework/GetErrorDescription.xaml rename to Performer/Framework/GetErrorDescription.xaml diff --git a/Framework/GetTransactionData.xaml b/Performer/Framework/GetTransactionData.xaml similarity index 100% rename from Framework/GetTransactionData.xaml rename to Performer/Framework/GetTransactionData.xaml diff --git a/Framework/InitiAllApplications.xaml b/Performer/Framework/InitiAllApplications.xaml similarity index 91% rename from Framework/InitiAllApplications.xaml rename to Performer/Framework/InitiAllApplications.xaml index 2089613..9881628 100644 --- a/Framework/InitiAllApplications.xaml +++ b/Performer/Framework/InitiAllApplications.xaml @@ -71,7 +71,7 @@ System.Runtime.WindowsRuntime - + @@ -88,7 +88,7 @@ - + [Config] @@ -97,7 +97,7 @@ - d0FDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xGcmFtZXdvcmtcSW5pdGlBbGxBcHBsaWNhdGlvbnMueGFtbBABXwFpAQJKA2UOAgEBSwVTCgIBDVQFVJsBAgELVQViEgIBBGMFY5UBAgECSxNLKAIBDk0JUSECARBUe1SYAQIBDFWKAVWAAgIBClsLXyMCAQVjemOSAQIBA09iT2oCARJNwQFN4gECARFdX11nAgEIW7sBW84BAgEG + d0tDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcRnJhbWV3b3JrXEluaXRpQWxsQXBwbGljYXRpb25zLnhhbWwQAV8BaQECSgNlDgIBAUsFUwoCAQxUBVSbAQIBClUFYhICAQRjBWOVAQIBAksTSygCAQ1NCVEhAgEPVHtUmAECAQtVigFVgAICAQlbC18jAgEFY3pjkgECAQNPYk9qAgERTcEBTeIBAgEQXV9dZwIBB1u7AVv3AQIBBg== @@ -114,7 +114,7 @@ - + True @@ -122,7 +122,7 @@ - + \ No newline at end of file diff --git a/Performer/Framework/InitiAllSettings.xaml b/Performer/Framework/InitiAllSettings.xaml new file mode 100644 index 0000000..acc2b34 --- /dev/null +++ b/Performer/Framework/InitiAllSettings.xaml @@ -0,0 +1,295 @@ + + + + + + + + + + GetAllSettings_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Framework.Activities + System.Windows.Markup + System.Runtime.InteropServices + System.Xml.Serialization + + + + + System.Activities + Microsoft.VisualBasic + mscorlib + System.Data + System + System.Drawing + System.Core + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Framework.Activities + PresentationFramework + WindowsBase + PresentationCore + System.Xaml + System.ServiceModel + System.Data.DataSetExtensions + System.ComponentModel.Composition + TimeSpan2 + UiPath.Excel.Activities + System.Runtime.WindowsRuntime + System.Collections.Immutable + Microsoft.VisualStudio.Services.Common + + + + + + + [settings] + + + [new Dictionary(of String, object)] + + + + + + + + + + + + + + + + + + + + + + + + [settings(row("Name").ToString.Trim)] + + + [row("Value")] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [assetValue] + + + + + [Settings(row("Name").ToString)] + + + [assetValue] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + d0dDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcRnJhbWV3b3JrXEluaXRpQWxsU2V0dGluZ3MueGFtbC0BmAEBsQEBAwFnAXMBAk4DvwEOAgEBTwVPngECATRQBVcOAgEwWAV7EgIBHXwFvQEQAgECT3tPmwECATVVSlVtAgEzUktSVQIBMViUAVikAQIBLl4LeBYCAR5+CbEBFAIBBbkBDbkBoQECAQNiDWLaAQIBJ2MNdx0CAR+CAQuCAdABAgEXgwELsAEbAgEGuQF7uQGeAQIBBGJIYlcCASxisgFiuwECASpiyQFi1wECAShjJmM1AgElaRN0GAIBIIIBRoIBUAIBG4IBqQGCAbEBAgEaggG/AYIBzQECARiDASSDAS4CARWJARGtARwCAQdpIWleAgEhaxdyIAIBIosBFZ0BIAIBDKUBGakBHgIBCHBCcFACASRtQ21oAgEjjgFGjgG3AQIBDZABF5QBKgIBEZUBF5wBIAIBDqUBJ6UBZAIBCacBHacB6QICAQqSAUqSAVYCAROQAUiQAXcCARKaAUKaAU4CARCXAUOXAWMCAQ+nAYoBpwHmAgIBCw== + + + + + + + + + + + + True + False + + + + + + + True + False + + + + + + + True + False + + + + + + + + + + True + + + + + + + + True + False + + + + + + + True + False + + + + + + + + True + False + + + + + + + True + False + + + + + + + + False + False + + + + + + + True + False + + + + + + + True + True + + + + + + + \ No newline at end of file diff --git a/Framework/Main.xaml b/Performer/Framework/Main.xaml similarity index 78% rename from Framework/Main.xaml rename to Performer/Framework/Main.xaml index 0f3e977..fa5898f 100644 --- a/Framework/Main.xaml +++ b/Performer/Framework/Main.xaml @@ -76,11 +76,19 @@ - + + + + [exception] + + + [Nothing] + + @@ -90,14 +98,6 @@ - - - [systemError] - - - [Nothing] - - [processRetries] @@ -117,21 +117,21 @@ - + - - + + - [systemError] + [exception] - [exception] + [systemFailure] - + - [Config("ErrorsFolder").ToString] - ["Exception application initialization" + Environment.NewLine + exception.Source + Environment.NewLine + exception.Message + Environment.NewLine + exception.StackTrace] + [Config] + ["Error starting process" + Environment.NewLine + exception.Source + Environment.NewLine + exception.Message + Environment.NewLine + exception.StackTrace] @@ -141,18 +141,28 @@ - + - + - - - [transactionData] - - - [Nothing] - - + + + + [transactionData] + + + [Nothing] + + + + + [exception] + + + [Nothing] + + + @@ -182,12 +192,12 @@ - + - - + + @@ -207,9 +217,19 @@ - + - + + + + [exception] + + + [systemError] + + + + @@ -221,64 +241,53 @@ - - - [ruleException] - - - [Nothing] - - - - - [systemError] - - - [Nothing] - - [transactionData] [Config] + - + - - - [ruleException] - - - [exception] - - + + + + [exception] + + + [ruleException] + + + + - + - + - [systemError] + [exception] - [exception] + [systemError] - + + - [Config("ErrorsFolder").ToString] - ["Exception processing transaction" + Environment.NewLine + exception.Source + Environment.NewLine + exception.Message + Environment.NewLine + exception.StackTrace] + [Config] + ["Exception processing transaction " + transactionData("ID").ToString + Environment.NewLine + exception.Source + Environment.NewLine + exception.Message + Environment.NewLine + exception.StackTrace] @@ -291,38 +300,25 @@ [Config] [transactionData] [transactionItem] - [If(ruleException isNot Nothing, "Error", If(systemError isNot Nothing, If(retryCount<ProcessRetries, "Retry#"+(retryCount+1).ToString, "Fail"), "Complete"))] - [If(ruleException isNot Nothing, ruleException.Message, If(systemError isNot Nothing, systemError.Message, Nothing))] + [If(exception is Nothing, "Complete", If(typeof(exception) is BusinessRuleException, "Error", If(retryCount<ProcessRetries, "Retry#"+(retryCount+1).ToString, "Fail")))] + [If(exception is Nothing, If(TransactionData.Keys.Contains("Complete") AndAlso TransactionData("Complete") isNot Nothing, TransactionData("Complete").ToString, Nothing), exception.Message)] - - - - - [ruleException IsNot Nothing] - + + - - - - - - - - - - [systemError IsNot Nothing] - - - - + + + [Config] + + - True + [exception IsNot Nothing AndAlso Not TypeOf(exception) Is BusinessRuleException] @@ -339,12 +335,12 @@ - + [Config] - + - + @@ -371,17 +367,17 @@ [retryCount + 1] - + - [systemError isNot Nothing AndAlso retryCount < processRetries] + [exception isNot Nothing AndAlso retryCount < processRetries] - + - [systemError isNot Nothing AndAlso retryCount >= processRetries] + [exception isNot Nothing AndAlso retryCount >= processRetries] @@ -392,19 +388,18 @@ __ReferenceID1 - - + - dzFDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xGcmFtZXdvcmsvTWFpbi54YW1shAEBSwFVAQJNA5IDEgIBAYoDTooDWQMBugGLAzeLA0IDAbkBjANEjANPAwG4AY0DM40DNgMBtwGOAzOOAzYDAbYBkgEP6AIXAwGJAdsBF8gCHwIBS9ECF+ACHwIBP08HgwMPAgEClAETmwEcAwGyAZ4BE7IBHgMBqQG3ARfYASIDAZQBzQIrzQJKAwGSAcsCF8sC7QEDAY8B5QIr5QJHAwGNAeMCF+MCpAEDAYsB3QEbqwImAgFesgIzsgJQAgFcsAIfsALcAQIBWr8CM78CTgIBWLYCH70CKgIBUcUCM8UCNwIBUMMCH8MC9gECAU3TAhveAiYCAUFRC40BFgIBHpABZZABfwIBG/oCI/oCZQIBF+0CD/gCGgIBC4ADI4ADZgIBB/4CD/4CzAECAQSZAViZAWEDAbUBlgFZlgFqAwGzAaIBFakBHgMBrgGqARWxAR4DAaoBuQEbzAEmAwGYAdQBH9QB7QEDAZUBywKVAcsC6gEDAZAB4wKFAeM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AgF3rAJzrAJ7AgF1rgJmrgJ3AgFzqgLbAaoC9gECAXKEAiWLAi4CAW2MAiWMAt0BAgFqlgIlnQIuAgFkngIlngLPAQIBYZ8CJaQCPQIBW9ACRNACSgIBTNICcdICeQIBStAC1gHQAvsBAgFJ1QIr1QJGAgFD1wIh1wKJAQIBRVQRWxoCATtcEWQWAgE0ZRFsGgIBMG0RcSkCASx7FYIBHgIBJoMBFYgBLQIBIO8CO+8CSwIBFewCPOwCSAIBE/IChAHyAt4BAgEP8wI88wJGAgENxwGCAccBkAEDAakByAEryAE5AwGcAcoBIcoBwgEDAaYBzQEh0wE5AwGeAeQBT+QBXAMBmAHhAVDhAVsDAZYB5wGZAecB7AEDAZMB9gGBAfYBkgEDAYMB9wF19wF9AwGBAfQB2gH0AfMBAwGAAfoBlwH6AfYBAgF9iQJTiQJiAgFwhgJUhgJfAgFujAKdAYwC2gECAWubAlObAmACAWeYAlSYAl8CAWWeApoBngLMAQIBYp8CTJ8CUgIBYKICYKICpgICAV+hAnmhAoEBAgFdnwLaAZ8C+wECAVzXAk/XAlwCAUZZP1lIAgE+VkBWSwIBPFwfXDQCATVeFWItAgE3ajtqYwIBM2c8Z0wCATFvZW9tAgEubcQBbekBAgEtgAFDgAFSAgEpfUR9TwIBJ4MBPIMBQgIBJYYBUIYB6gECASSFAWmFAXECASKDAckBgwHqAQIBIcoBmwHKAb8BAwGnAc8Bf88BkAEDAaQB0AF10AF9AwGiAdEBadEBegMBoAHNAdwBzQH1AQMBnwFgbmB2AgE5Xs4BXu8BAgE4 + - @@ -433,7 +428,7 @@ - + True @@ -442,6 +437,14 @@ + + + + + True + + + @@ -462,8 +465,16 @@ + - + + + + True + + + + False @@ -471,7 +482,7 @@ - + True @@ -480,18 +491,25 @@ - - - + + + + + True + + + + + + True - - + False @@ -500,8 +518,9 @@ + - + True @@ -509,16 +528,16 @@ - + - False + True False - + True @@ -526,8 +545,7 @@ - - + 379.95,498 379.95,528 583,528 583,235.7 505.5,235.7 @@ -537,38 +555,29 @@ - - - + + 401.05,498 401.05,521.3 535.5,521.3 535.5,281.3 505.5,281.3 + 43 + 52 + True True - + + - 379.95,498 379.95,527.45 639.5,527.45 639.5,77.45 508.5,77.45 - 35 + 358.85,498 358.85,535 633.75,535 633.75,77.45 508.5,77.45 + 27 40 True - - - - - 379.95,498 379.95,521.3 535.5,521.3 535.5,281.3 505.5,281.3 - 35 - 52 - True - True - - - - + 285,400 @@ -581,7 +590,7 @@ - + 390,315.5 390,345.5 390.5,345.5 390.5,400 @@ -656,7 +665,7 @@ - + 391.5,116.5 391.5,136.9 244.5,136.9 244.5,76.9 274.5,76.9 @@ -665,8 +674,8 @@ - - + + 391.5,116.5 391.5,152 138.8,152 138.8,198.5 diff --git a/Framework/SetTransactionStatus.xaml b/Performer/Framework/SetTransactionStatus.xaml similarity index 63% rename from Framework/SetTransactionStatus.xaml rename to Performer/Framework/SetTransactionStatus.xaml index 2d9beb8..d8f5f5a 100644 --- a/Framework/SetTransactionStatus.xaml +++ b/Performer/Framework/SetTransactionStatus.xaml @@ -3,6 +3,7 @@ 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: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" @@ -16,6 +17,7 @@ + @@ -71,51 +73,55 @@ - - - - - - [Detail] - - - - + + - - - - - - - - - - - - + + + + + + [Detail] + + + + + + - - + + - SetTransactionStatus_2 - - - - - - - + + + + + + + + + + + + + + + + + + + + - - + + @@ -125,10 +131,12 @@ __ReferenceID3 __ReferenceID4 __ReferenceID5 - d0FDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xGcmFtZXdvcmtcU2V0VHJhbnNhY3Rpb25TdGF0dXMueGFtbBBIA4EBDwIBAUsJUw4CARNVO1VmAgERYD9gZwIBD20VcS8CAQpjFWgvAgEFWBFcKwIBAksXSzcCARRNDVElAgEWbdgBbeIBAgENbYMCbZYCAgELY6ABY6oBAgEIY8sBY94BAgEGWIMCWJYCAgEDT1BPWAIBGE3IAU3sAQIBFw== + __ReferenceID6 + d0FDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xGcmFtZXdvcmtcU2V0VHJhbnNhY3Rpb25TdGF0dXMueGFtbBNKA4gBDwIBAU0JTcYBAgEdUA1YEgIBFlo/WmoCARRlQ2VrAgEScRl1MwIBCmgZbDMCAQVdFWEvAgECTX1NwwECAR5QG1A7AgEXUhFWKQIBGXGoAnGyAgIBEHFtcbABAgENcdMCceYCAgELaN0BaOcBAgEIaIgCaJsCAgEGXYcCXZoCAgEDVFRUXAIBG1LMAVLwAQIBGg== + @@ -148,7 +156,7 @@ - 0,449 + 0,499 200,22 @@ -157,7 +165,7 @@ - 200,449 + 200,499 200,22 @@ -172,7 +180,7 @@ - 400,449 + 400,499 200,22 @@ -181,10 +189,10 @@ True - 365,326.5 + 365,376.5 70,87 - 365,370 300,370 300,449 - 435,370 500,370 500,449 + 365,420 300,420 300,499 + 435,420 500,420 500,499 Exception Error @@ -194,10 +202,10 @@ True - 215,237.5 + 215,287.5 70,87 - 215,281 100,281 100,449 - 285,281 400,281 400,326.5 + 215,331 100,331 100,499 + 285,331 400,331 400,376.5 Success Failure @@ -206,9 +214,18 @@ - 150,157.5 + 150,197.5 + 200,52 + 250,249.5 250,287.5 + + + + + + + 150,107.5 200,52 - 250,209.5 250,237.5 + 250,159.5 250,197.5 @@ -217,9 +234,9 @@ True False - 220,42.5 + 220,0 60,75 - 250,117.5 250,157.5 + 250,75 250,107.5 True diff --git a/Framework/SaveErrorScreen.xaml b/Performer/Framework/TraceSystemError.xaml similarity index 81% rename from Framework/SaveErrorScreen.xaml rename to Performer/Framework/TraceSystemError.xaml index fc113bf..e51d6e2 100644 --- a/Framework/SaveErrorScreen.xaml +++ b/Performer/Framework/TraceSystemError.xaml @@ -1,4 +1,4 @@ - - + @@ -63,12 +63,15 @@ System.ServiceModel System.ComponentModel.Composition TimeSpan2 + Microsoft.VisualStudio.Services.Common + System.Runtime.WindowsRuntime - + + @@ -77,7 +80,7 @@ - + @@ -85,7 +88,7 @@ - d1JDOlxVc2Vyc1xNaWhhaVRhdHVcRG9jdW1lbnRzXFVpUGF0aFxSZUZyYW1lV29ya1wyLjBcRnJhbWV3b3JrXFNhdmVFcnJvclNjcmVlbi54YW1sEgF/AYkBAQMBXwFhAQJEA1kOAgEBRzRHYwIBAkkFTRkCARFOBVIKAgEKUwVXCgIBA0k+SUQCARRJoQFJrwECARJOE04sAgELUAlQzgECAQxTE1M0AgEEVQlVvgECAQZQJ1AtAgEQUFVQiAECAQ9QvQFQywECAQ1VsAFVuwECAQhVRVV4AgEH + dz1DOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xGcmFtZXdvcmtcVHJhY2VTeXN0ZW1FcnJvci54YW1sEwHdAQHnAQEDAWMBvQEBAkYDXA4CAQFJNEljAgEDSjRK+AECAQJMBVAZAgESUQVVCgIBC1YFWgoCAQRMPkxEAgEVTKEBTK8BAgETURNRLAIBDFMJU84BAgENVhNWNAIBBVgJWL4BAgEHUydTLQIBEVNVU4gBAgEQU70BU8sBAgEOWLABWLsBAgEJWEVYeAIBCA== @@ -94,7 +97,7 @@ - + True @@ -102,7 +105,7 @@ - + \ No newline at end of file diff --git a/GetTransactionData.xaml b/Performer/GetTransactionData.xaml similarity index 60% rename from GetTransactionData.xaml rename to Performer/GetTransactionData.xaml index a6746cb..5713437 100644 --- a/GetTransactionData.xaml +++ b/Performer/GetTransactionData.xaml @@ -1,4 +1,4 @@ - @@ -68,6 +69,7 @@ Microsoft.VisualStudio.Services.Common System.ComponentModel.Composition System.Runtime.WindowsRuntime + System.Collections.Immutable @@ -75,63 +77,68 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [status] - - - [row("Status").ToString.Trim] - - - - - - - - [freshItem] - - - [row] - - - - - - - - - - + + + + + [Config] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [freshItem] + + + [row] + + + + + + + + + + + + + + + + @@ -178,6 +185,14 @@ + + + [TransactionData("RowCount")] + + + [inputData.Rows.Count] + + [TransactionData("RowIndex")] @@ -186,26 +201,29 @@ [inputData.Rows.IndexOf(freshItem)] - + - dzVDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xHZXRUcmFuc2FjdGlvbkRhdGEueGFtbDNJA8IBDgIBAU4FYSACATFiBYYBFQIBHocBBcABCgIBAk6hAU7LAQIBQFQLXhYCATJiHmIrAgEvaAuDARYCAR+HAROHASsCAQOJAQmQARICARqTAQm+ARQCAQRVDVWjAQIBPFYNVqUBAgE4Vw1dIQIBM2wNcxYCASt0DYIBEgIBII4BTo4BVwIBHYsBT4sBYAIBG5QBC5sBFAIBFpwBC6MBFAIBEqQBC7QBGAIBDbUBC7wBFAIBCb0BC70BlAICAQVVJVUpAgE/VZgBVaABAgE+VYoBVZIBAgE9ViVWKQIBO1aZAVaiAQIBOlaLAVaTAQIBOVc8V0kCATZaE1pCAgE1V58BV6cBAgE0cThxVQIBLm45bkECASx0G3RnAgEhdhGAARwCASSZAVCZAXMCARmWAVGWAWICARehATahAVICARWeATeeAU4CAROkAZwBpAGxAQIBEaoBEbEBGgIBDroBNroBWQIBDLcBN7cBVAIBCr0Bfr0BkQICAQZ3E34cAgEmfxN/ZAIBJa8BPK8BTAIBEKwBPawBXgIBD3xAfEUCASl5QXlMAgEn + dz9DOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcR2V0VHJhbnNhY3Rpb25EYXRhLnhhbWw7AWcBggIBAksD0QEOAgEBUAVYCgIBRlkFjQEKAgEjjgEFzwEKAgECUBNQfgIBR1IJVhkCAUhZE1l+AgEkWwmLASQCASWOAROOASsCAQOQAQmXARICAR+aAQnNARQCAQRUYFRoAgFJW8sBW/UBAgFEYQ+IARoCASaVAU6VAVcCASKSAU+SAWACASCbAQuiARQCARujAQuqARQCARerAQu7ARgCARK8AQvDARQCAQ7EAQvLARQCAQrMAQvMAa0CAgEFYhFipwECAUBjEWOpAQIBPGQRaiUCATdrEYcBIQIBJ6ABUKABcwIBHp0BUZ0BYgIBHKgBNqgBUgIBGqUBN6UBTgIBGKsBnAGrAbEBAgEWsQERuAEaAgETwQE2wQFMAgERvgE3vgFUAgEPyQE2yQFZAgENxgE3xgFUAgELzAF+zAGqAgIBBmIpYi0CAUNinAFipAECAUJijgFilgECAUFjKWMtAgE/Y50BY6YBAgE+Y48BY5cBAgE9ZEBkTQIBOmcXZ0YCATlkowFkqwECAThrKms3AgE1cReEASICASi2ATy2AUwCARWzAT2zAV4CARRzSHNxAgEpdRmDAR4CASp1J3VzAgErdx2BASgCAS54H38oAgEwgAEfgAFwAgEvfUx9UQIBM3pNelgCATE= - - - - + + + + + + + + True - False - + True @@ -213,17 +231,14 @@ - - - - + True - + True @@ -231,14 +246,23 @@ - + True + False + + + + + + + True + False - + @@ -250,16 +274,17 @@ + - + True - + True @@ -267,7 +292,7 @@ - + True @@ -275,7 +300,7 @@ - + \ No newline at end of file diff --git a/ProcessTransaction.xaml b/Performer/ProcessTransaction.xaml similarity index 87% rename from ProcessTransaction.xaml rename to Performer/ProcessTransaction.xaml index 6dd0f94..eb5fbeb 100644 --- a/ProcessTransaction.xaml +++ b/Performer/ProcessTransaction.xaml @@ -73,12 +73,12 @@ - + - + - + @@ -89,7 +89,7 @@ - + @@ -100,11 +100,19 @@ + + + [TransactionData("Complete")] + + + [new Random().Next(1,100)] + + - dzVDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQcm9jZXNzVHJhbnNhY3Rpb24ueGFtbBBIA2wOAgEBTAVQCgIBDVEFVQoCAQlWBWoWAgECTBNMNwIBDk4JTrIBAgEPURNRNwIBClMJU6wBAgELVtMBVpYCAgEIXAtnFgIBA05BToUBAgEQU0RTfwIBDF0NYRsCAQdiDWYbAgEEZGdkpAECAQZipgJioAMCAQU= + dz9DOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcUHJvY2Vzc1RyYW5zYWN0aW9uLnhhbWwTSAN0DgIBAUwFUAoCARFRBVUKAgENVgVyFgIBAkwTTDcCARJOCU6yAQIBE1ETUTcCAQ5TCVOsAQIBD1bTAVaWAgIBDFwLbxYCAQNOQU6FAQIBFFNEU38CARBdDWEbAgELYg1mGwIBCGcNbhYCAQRkZ2SkAQIBCmKmAmKgAwIBCWw4bFICAQdpOWlWAgEF @@ -114,15 +122,16 @@ - + + True - - + + True @@ -130,7 +139,7 @@ - + \ No newline at end of file diff --git a/SetTransactionStatus.xaml b/Performer/SetTransactionStatus.xaml similarity index 80% rename from SetTransactionStatus.xaml rename to Performer/SetTransactionStatus.xaml index ec8dd36..9e68aa1 100644 --- a/SetTransactionStatus.xaml +++ b/Performer/SetTransactionStatus.xaml @@ -7,6 +7,7 @@ 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:si="clr-namespace:System.IO;assembly=mscorlib" xmlns:this="clr-namespace:" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> @@ -71,6 +72,7 @@ + @@ -80,7 +82,7 @@ - + @@ -104,10 +106,19 @@ - dzdDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xTZXRUcmFuc2FjdGlvblN0YXR1cy54YW1sGQH4AgGCAwEGAeIBAewBAQUBlAIB2QIBBAFjAcMBAQMBqgMBtAMBAkkDbA4CAQFKBVIKAgEUUwVqIAIBAkoTSjMCARVMCVAhAgEXU6ABU8oBAgESWQtnFgIBA05MTlQCARlMxAFM6AECARhdDWQWAgEOZQ1ltQECAQlmDWa2AQIBBGI/YncCARFfQF9HAgEPZSVlPAIBDWWoAWWyAQIBC2WaAWWiAQIBCmYlZjwCAQhmqQFmswECAQZmmwFmowECAQU= + + + + [Config("InputFile").ToString] + [Path.Combine(Config("OutputPath").ToString, new FileInfo(Config("InputFile").ToString).Name)] + + + + d0FDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xQZXJmb3JtZXJcU2V0VHJhbnNhY3Rpb25TdGF0dXMueGFtbCAB+AIBggMBBgHiAQHsAQEFAZQCAdkCAQQBYwHDAQEDAaoDAbQDAQJKA3YOAgEBSwVLwgECASFMBVQKAgEaVQVsIAIBCG0FdAoCAQJLeUu/AQIBIkwTTDMCARtOCVIhAgEdVcYBVfABAgEYWwtpFgIBCW0TbbMBAgEDbwlyGAIBBFBMUFQCAR9OxAFO6AECAR5fDWYWAgEUZw1ntQECAQ9oDWi2AQIBCnAycFACAQZxMnGQAQIBBWQ/ZHcCARdhQGFHAgEVZyVnPAIBE2eoAWeyAQIBEWeaAWeiAQIBEGglaDwCAQ5oqQFoswECAQxomwFoowECAQs= + @@ -128,7 +139,9 @@ - + + + True @@ -136,7 +149,7 @@ - + \ No newline at end of file diff --git a/Performer/project.json b/Performer/project.json new file mode 100644 index 0000000..7cd56b5 --- /dev/null +++ b/Performer/project.json @@ -0,0 +1,12 @@ +{ + "description": "Robotic Enterprise Framework Performer", + "version": "2016.2.6274.33252", + "main": "Framework/Main.xaml", + "id": "RFW-Performer", + "dependencies": {}, + "configurationOptions": {}, + "excludedData": [ + "Private:*", + "*password*" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 6784525..a67aece 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,72 @@ -### ReFrameWork Template ### +### Tripartite Process Model ### **Robotic Enterprise Framework** +Many business processes in the enterprise world follow this pattern: + +* Some Excel files come by email +* Actions required for each row +* Updated Excel files sent back + +To automate this kind of process with UiPath, we split it in three phases: + +1. Monitor email, download attachments and upload data to Orchestrator queue +2. Process items in queue with several robots in parallel to keep up with volumes +3. Assemble data back to Excel files with new info/status and send them back + +Leading phases 1&3 can be executed by a single robot in one *Dispatcher* process with a recursive schedule. + +The main *Performer* structure handles application interaction and status updates in the 2nd phase. + +### ReFrameWork Dispatcher ### + +Filter email, save Excel attachments and load all data into an Orchestrator transaction queue +* Check out *Dispatcher/FetchAttachments* that filters Inbox email by Config("EmailFilter") and downloads the attachments +* Check out *Dispatcher/OnloadQueue* that loads data from Excel files in a queue, tracking the file it belongs to and the row index + +Reassemble the Excel files with statuses from the secondary queue and send them when complete via email +* Check out *Dispatcher/OffloadQueue* sample that saves items from a queue to Excel files using a header *ExcelTemplate.xlsx* +* Check out *Dispatcher/SendStatusEmail* that uses a *EmailTemplate.txt* file with String.Format for the message body + + +### ReFrameWork Performer ### + * built on top of *Transactional Business Process* template * using *State Machine* layout for the phases of automation project * offering high level exception handling and application recovery * keeps external settings in *Config.xlsx* file and Orchestrator assets * pulls credentials from *Credential Manager* and Orchestrator assets * gets transaction data from Orchestrator queue and updates back status -* takes screenshots in case of application exceptions -* provides extra utility workflows like sending a templated email -* runs sample Notepad application with dummy Excel input data -* - +* saves screenshots and error messages in case of application exceptions +* runs out of the box sample Notepad application with dummy Excel input data -### How It Works ### +## How It Works ## 1. **INITIALIZE PROCESS** + *InitiAllSettings* - Load config data from file and from assets + *InitiAllApplications* - Login to applications as per Config("OpenApps") field + *GetAppCredentials* - From Orchestrator assets or local Credential Manager - + If failing, retry a few times as per Config("ProcessRetries") + + If initialization failing, retry a few times as per Config("ProcessRetries") 2. **GET TRANSACTION DATA** - + ./Framework/*GetTransactionData* - Fetches from Orchestrator queue as per Config("TransactionQueue") - + ./*GetTransactionData* - Sample for working with Excel input files + + ./Framework/*GetTransactionData* - Fetch from Orchestrator queue as per Config("TransactionQueue") + + ./*GetTransactionData* - Fetch a row from sample Excel input file 3. **PROCESS TRANSACTION** + Try *ProcessTransaction* + If application exceptions happen - + *SaveErrorScreen* - In Config("ErrorsFolder") with the exception message + + *TraceSystemError* - Saves screenshot and error message In Config("ErrorsFolder") + Going to re/INITIALIZE + *SetTransactionStatus* - As Success, Failed or Rejected with reason - + ./Framework/*SetTransactionStatus* - Updates the Orchestrator queue item - + ./*SetTransactionStatus* - Sample for updating Excel input file + + ./Framework/*SetTransactionStatus* - Updates Orchestrator queue item + + ./*SetTransactionStatus* - Updates sample Excel row 4. **END PROCESS** + *CloseAllApplications* - As listed in Config("CloseApps") -### For New Project ### +### Starting a Project ### 1. Check out the Config.xlsx file and add/customize any required fields and values -2. Implement OpenApp and CloseApp workflows, linking them in the Config.xlsx fields +2. Implement OpenApp and CloseApp workflows in your App folder, linking them in the Config.xlsx fields 3. Implement GetTransactionData and SetTransactionStatus or use ./Framework versions for Orchestrator queues 4. Implement ProcessTransaction workflow and any invoked others diff --git a/Xtras/AddDataToQueue.xaml b/Test.xaml similarity index 50% rename from Xtras/AddDataToQueue.xaml rename to Test.xaml index 583e82b..72ffd77 100644 --- a/Xtras/AddDataToQueue.xaml +++ b/Test.xaml @@ -1,15 +1,23 @@ - + + + + + + + Test_1 System.Activities @@ -33,7 +41,7 @@ UiPath.Core UiPath.Core.Activities System.Windows.Markup - System.Xml.Serialization + System.Globalization @@ -56,78 +64,55 @@ System.ComponentModel.Composition System.ServiceModel System.Runtime.WindowsRuntime - System.Data.DataSetExtensions + Microsoft.VisualStudio.Services.Common - + + + - + [config] + Performer/Config.xlsx - - - - - - - - - - - - - - - - - - - - - - - - - - [row("Name").ToString] - [row("Age").ToString] - - - - - - - - - - dzFDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xBZGREYXRhVG9RdWV1ZS54YW1sET4DbA4CAQFCBUYdAgETRwVqIAIBAkReRGYCARVCvQFC3gECARRHoAFHygECARFNC2cWAgEDUQ1XIQIBDFgNZh0CAQRRPFFKAgEPVBNUQgIBDlGnAVGvAQIBDVgmWDQCAQpeE2MlAgEFYUphXwIBCV7BAV7yAQIBB2BLYGECAQY= + + + + + + + + + + + + + + + + + + + dydDOlxDb2RlSHViXFVpUGF0aFxSZUZyYW1lV29ya1xUZXN0LnhhbWwMAUoBXgECRgNlDgIBAUwFUR0CAQlSBWMQAgECTl5OZgIBDE9DT1gCAQtMvQFM6AECAQpTB2ESAgEGYgdi1gECAQNfTF+xAQIBCF+8AV/CAQIBB2KcAWLEAQIBBA== - - - - - + + + + + True - - - - - True - - - - + \ No newline at end of file diff --git a/TestData/Errors/placeholder b/TestData/Errors/placeholder new file mode 100644 index 0000000..e69de29 diff --git a/SampleData.xlsx b/TestData/Output/Sample1.xlsx similarity index 53% rename from SampleData.xlsx rename to TestData/Output/Sample1.xlsx index d09c719..c03ea10 100644 Binary files a/SampleData.xlsx and b/TestData/Output/Sample1.xlsx differ diff --git a/TestData/Output/Sample2.xlsx b/TestData/Output/Sample2.xlsx new file mode 100644 index 0000000..49c6172 Binary files /dev/null and b/TestData/Output/Sample2.xlsx differ diff --git a/Xtras/EmailTemplate.txt b/Xtras/EmailTemplate.txt deleted file mode 100644 index 6b315aa..0000000 --- a/Xtras/EmailTemplate.txt +++ /dev/null @@ -1,11 +0,0 @@ -Hi, - -Process {0} {1}. -{2}. - -Regards, -{3} - -Cheers, -Mihai Tatu -www.UiPath.com diff --git a/project.json b/project.json index e2435a5..9d92a38 100644 --- a/project.json +++ b/project.json @@ -1,7 +1,7 @@ { - "description": "Robotic Enterprise Framework Template", + "description": "Robotic Enterprise Framework Templates", "version": "2016.2.6274.33252", - "main": "Framework/Main.xaml", + "main": "Test.xaml", "id": "ReFrameWork", "dependencies": {}, "configurationOptions": {},