Skip to content

Commit

Permalink
Add output log to output.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
ShonHarsh committed Apr 10, 2024
1 parent 7cadc56 commit 1b5bf06
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 20 deletions.
13 changes: 13 additions & 0 deletions Data/Output/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
04/10/2024 18:43:25 => [Debug] Debug started for file: Main
04/10/2024 18:43:25 => [Info] RPADev-S03P04-Dictionaries-Doubles execution started
04/10/2024 18:43:25 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.Begin;
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionNote; Nothing chosen by the user. Printing all items.
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: Madrid, Total Weight: 2.1
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: Paris, Total Weight: 7.7
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: New York, Total Weight: 5.300000000000001
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: Berlin, Total Weight: 0.8
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: San Francisco, Total Weight: 2.8
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: Cairo, Total Weight: 1.3
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.NoSelectionPrint; City: Chicago, Total Weight: 1.9
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles.Main.End;
04/10/2024 18:43:27 => [Info] RPADev-S03P04-Dictionaries-Doubles execution ended in: 00:00:02
52 changes: 32 additions & 20 deletions Main.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Activity mc:Ignorable="sap sap2010" x:Class="Main" sap2010:Annotation.AnnotationText="UPTF00000088eyI8SGVscExpbms+a19fQmFja2luZ0ZpZWxkIjpudWxsLCI8SW5pdGlhbFRvb2x0aXA+a19fQmFja2luZ0ZpZWxkIjpudWxsLCI8VmVyc2lvbj5rX19CYWNraW5nRmllbGQiOjF9" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap:VirtualizedContainerService.HintSize="1099,5726" sap2010:WorkflowViewState.IdRef="ActivityBuilder_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:s="clr-namespace:System;assembly=System.Private.CoreLib" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:sc="clr-namespace:System.Collections;assembly=System.Private.CoreLib" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System.Private.CoreLib" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=System.Private.CoreLib" xmlns:uasa="clr-namespace:UiPath.Activities.System.Arrays;assembly=UiPath.System.Activities" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Activity mc:Ignorable="sap sap2010" x:Class="Main" sap2010:Annotation.AnnotationText="UPTF00000088eyI8SGVscExpbms+a19fQmFja2luZ0ZpZWxkIjpudWxsLCI8SW5pdGlhbFRvb2x0aXA+a19fQmFja2luZ0ZpZWxkIjpudWxsLCI8VmVyc2lvbj5rX19CYWNraW5nRmllbGQiOjF9" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap:VirtualizedContainerService.HintSize="1099,3996" sap2010:WorkflowViewState.IdRef="ActivityBuilder_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:s="clr-namespace:System;assembly=System.Private.CoreLib" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:sc="clr-namespace:System.Collections;assembly=System.Private.CoreLib" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System.Private.CoreLib" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=System.Private.CoreLib" xmlns:uasa="clr-namespace:UiPath.Activities.System.Arrays;assembly=UiPath.System.Activities" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments="x:String">
<x:String>System.Activities</x:String>
Expand Down Expand Up @@ -32,6 +32,7 @@
<x:String>System.Numerics</x:String>
<x:String>UiPath.Activities.System.Arrays</x:String>
<x:String>System.Linq.Expressions.Interpreter</x:String>
<x:String>UiPath.Activities.System.Collections</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
Expand Down Expand Up @@ -96,7 +97,7 @@
<x:Boolean x:Key="ShouldExpandAll">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="Main Sequence" sap:VirtualizedContainerService.HintSize="942,5661" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence DisplayName="Main Sequence" sap:VirtualizedContainerService.HintSize="942,3931" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="scg:Dictionary(x:String, scg:Dictionary(x:String, x:Double))" Name="dictDatabase">
<Variable.Default>
Expand Down Expand Up @@ -207,10 +208,10 @@
</ui:MultipleAssign.AssignOperations>
</ui:MultipleAssign>
</Sequence>
<Sequence DisplayName="Sequence Operation" sap:VirtualizedContainerService.HintSize="880,2855" sap2010:WorkflowViewState.IdRef="Sequence_3">
<Sequence DisplayName="Sequence Operation" sap:VirtualizedContainerService.HintSize="880,2928" sap2010:WorkflowViewState.IdRef="Sequence_3">
<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 Down Expand Up @@ -311,25 +312,25 @@
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:ForEach>
<ui:ForEach x:TypeArguments="x:String" CurrentIndex="{x:Null}" sap2010:Annotation.AnnotationText="Now that the list if cities is created, iterate over the city name list. Then the shipping caluclation can be made." DisplayName="For Each Unique City" sap:VirtualizedContainerService.HintSize="818,1630" sap2010:WorkflowViewState.IdRef="ForEach`1_3">
<ui:ForEach x:TypeArguments="x:String" CurrentIndex="{x:Null}" sap2010:Annotation.AnnotationText="Now that the list if cities is created, iterate over the city name list. Then the shipping caluclation can be made." DisplayName="For Each Unique City" sap:VirtualizedContainerService.HintSize="818,1703" sap2010:WorkflowViewState.IdRef="ForEach`1_3">
<ui:ForEach.Body>
<ActivityAction x:TypeArguments="x:String">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:String" Name="strCityKeys" />
</ActivityAction.Argument>
<Sequence DisplayName="Body Unique City" sap:VirtualizedContainerService.HintSize="784,1412" sap2010:WorkflowViewState.IdRef="Sequence_10">
<Sequence DisplayName="Body Unique City" sap:VirtualizedContainerService.HintSize="784,1485" sap2010:WorkflowViewState.IdRef="Sequence_10">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:ForEach x:TypeArguments="scg:Dictionary(x:String, x:Double)" CurrentIndex="{x:Null}" DisplayName="For Each City In Database" sap:VirtualizedContainerService.HintSize="722,1327" sap2010:WorkflowViewState.IdRef="ForEach`1_4">
<ui:ForEach x:TypeArguments="scg:Dictionary(x:String, x:Double)" CurrentIndex="{x:Null}" DisplayName="For Each City In Database" sap:VirtualizedContainerService.HintSize="722,1400" sap2010:WorkflowViewState.IdRef="ForEach`1_4">
<ui:ForEach.Body>
<ActivityAction x:TypeArguments="scg:Dictionary(x:String, x:Double)">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="scg:Dictionary(x:String, x:Double)" Name="dictCityAndWeight" />
</ActivityAction.Argument>
<Sequence DisplayName="Body City In Database" sap:VirtualizedContainerService.HintSize="688,1140" sap2010:WorkflowViewState.IdRef="Sequence_11">
<Sequence DisplayName="Body City In Database" sap:VirtualizedContainerService.HintSize="688,1213" sap2010:WorkflowViewState.IdRef="Sequence_11">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="strCityName">
<Variable.Default>
Expand All @@ -343,14 +344,14 @@
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<If DisplayName="If Validate Key" sap:VirtualizedContainerService.HintSize="626,1055" sap2010:WorkflowViewState.IdRef="If_5">
<If DisplayName="If Validate Key" sap:VirtualizedContainerService.HintSize="626,1128" sap2010:WorkflowViewState.IdRef="If_5">
<If.Condition>
<InArgument x:TypeArguments="x:Boolean">
<CSharpValue x:TypeArguments="x:Boolean" sap2010:WorkflowViewState.IdRef="CSharpValue`1_62">dictCityAndWeight.ContainsKey(strCityKeys)</CSharpValue>
</InArgument>
</If.Condition>
<If.Then>
<Sequence DisplayName="Then" sap:VirtualizedContainerService.HintSize="592,844" sap2010:WorkflowViewState.IdRef="Sequence_17">
<Sequence DisplayName="Then" sap:VirtualizedContainerService.HintSize="592,917" sap2010:WorkflowViewState.IdRef="Sequence_17">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
Expand Down Expand Up @@ -391,51 +392,61 @@
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:MultipleAssign>
<If DisplayName="If City Exists Total" sap:VirtualizedContainerService.HintSize="530,541" sap2010:WorkflowViewState.IdRef="If_3">
<If DisplayName="If City Exists Total" sap:VirtualizedContainerService.HintSize="530,614" sap2010:WorkflowViewState.IdRef="If_3">
<If.Condition>
<InArgument x:TypeArguments="x:Boolean">
<CSharpValue x:TypeArguments="x:Boolean" sap2010:WorkflowViewState.IdRef="CSharpValue`1_37">dictShippingTotal.ContainsKey(strCityName) == true</CSharpValue>
</InArgument>
</If.Condition>
<If.Then>
<Sequence DisplayName="Then" sap:VirtualizedContainerService.HintSize="496,190" sap2010:WorkflowViewState.IdRef="Sequence_12">
<Sequence DisplayName="Then" sap:VirtualizedContainerService.HintSize="496,232" sap2010:WorkflowViewState.IdRef="Sequence_12">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="Assign Add Weight To Total" sap:VirtualizedContainerService.HintSize="434,105" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign sap2010:Annotation.AnnotationText="This is causing assembly errors&#xD;&#xA;dictShippingTotal[strCityname] + doubleShippingWeight" DisplayName="Assign Add Weight To Total" sap:VirtualizedContainerService.HintSize="434,147" sap2010:WorkflowViewState.IdRef="Assign_9">
<Assign.To>
<OutArgument x:TypeArguments="x:Double">
<CSharpReference x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpReference`1_6">dictShippingTotal[strCityname]</CSharpReference>
<CSharpReference x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpReference`1_13">dictShippingTotal[strCityName]</CSharpReference>
</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Double">
<CSharpValue x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpValue`1_38">dictShippingTotal[strCityname] + doubleShippingWeight</CSharpValue>
<CSharpValue x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpValue`1_72">dictShippingTotal[strCityName] + doubleShippingWeight</CSharpValue>
</InArgument>
</Assign.Value>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</Assign>
</Sequence>
</If.Then>
<If.Else>
<Sequence DisplayName="Else" sap:VirtualizedContainerService.HintSize="496,190" sap2010:WorkflowViewState.IdRef="Sequence_13">
<Sequence DisplayName="Else" sap:VirtualizedContainerService.HintSize="496,221" sap2010:WorkflowViewState.IdRef="Sequence_13">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Assign DisplayName="Assign Add Weight" sap:VirtualizedContainerService.HintSize="434,105" sap2010:WorkflowViewState.IdRef="Assign_2">
<Assign sap2010:Annotation.AnnotationText="This is causing assembly errors" DisplayName="Assign Add Weight" sap:VirtualizedContainerService.HintSize="434,136" sap2010:WorkflowViewState.IdRef="Assign_10">
<Assign.To>
<OutArgument x:TypeArguments="x:Double">
<CSharpReference x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpReference`1_7">dictShippingTotal[strCityname]</CSharpReference>
<CSharpReference x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpReference`1_11">dictShippingTotal[strCityName]</CSharpReference>
</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Double">
<CSharpValue x:TypeArguments="x:Double" sap2010:WorkflowViewState.IdRef="CSharpValue`1_39">doubleShippingWeight</CSharpValue>
</InArgument>
</Assign.Value>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</Assign>
</Sequence>
</If.Else>
Expand Down Expand Up @@ -477,13 +488,14 @@
</sap:WorkflowViewStateService.ViewState>
</ui:ForEach>
</Sequence>
<Sequence DisplayName="Sequence Result" sap:VirtualizedContainerService.HintSize="880,1868" sap2010:WorkflowViewState.IdRef="Sequence_4">
<Sequence DisplayName="Sequence Result" sap:VirtualizedContainerService.HintSize="880,65" sap2010:WorkflowViewState.IdRef="Sequence_4">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="strInputDialogValue" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<x:Boolean x:Key="IsPinned">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:InputDialog OptionsString="{x:Null}" DisplayName="Input Dialog Prompt" sap:VirtualizedContainerService.HintSize="642,332" sap2010:WorkflowViewState.IdRef="InputDialog_1" IsPassword="False" Title="City Select">
Expand Down

0 comments on commit 1b5bf06

Please sign in to comment.