-
Notifications
You must be signed in to change notification settings - Fork 0
/
Predict_Sales.xaml
155 lines (155 loc) · 13 KB
/
Predict_Sales.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<Activity mc:Ignorable="sap sap2010" x:Class="Predict_Sales" 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:njl="clr-namespace:Newtonsoft.Json.Linq;assembly=Newtonsoft.Json" 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:ui="http://schemas.uipath.com/workflow/activities" xmlns:um="clr-namespace:UiPath.MLServices;assembly=UiPath.MLServices" xmlns:uma="clr-namespace:UiPath.MLServices.Activities;assembly=UiPath.MLServices.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="list_timestamps" Type="InArgument(scg:List(x:String))" />
<x:Property Name="predictions" Type="OutArgument(scg:List(x:String))" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>1456,1599</sap:VirtualizedContainerService.HintSize>
<sap2010:WorkflowViewState.IdRef>ActivityBuilder_1</sap2010:WorkflowViewState.IdRef>
<TextExpression.NamespacesForImplementation>
<scg:List x:TypeArguments="x:String" Capacity="23">
<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>System.Windows.Markup</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Newtonsoft.Json</x:String>
</scg:List>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<scg:List x:TypeArguments="AssemblyReference" Capacity="40">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
<AssemblyReference>UiPath.Mail</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>System.ValueTuple</AssemblyReference>
<AssemblyReference>UiPath.CV</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
</scg:List>
</TextExpression.ReferencesForImplementation>
<Sequence sap:VirtualizedContainerService.HintSize="588,1534" sap2010:WorkflowViewState.IdRef="Sequence_4">
<Sequence.Variables>
<Variable x:TypeArguments="scg:List(x:String)" Default="[new List(of string)]" Name="predictions_list" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="Predict_Sales" sap:VirtualizedContainerService.HintSize="546,1342" sap2010:WorkflowViewState.IdRef="Sequence_2">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Default="http://35.241.255.215/ai-deployer-develop/" Name="Orchestrator_URL" />
<Variable x:TypeArguments="x:String" Default="2315" Name="tenantID" />
</Sequence.Variables>
<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="x:String" CurrentIndex="{x:Null}" DisplayName="For Each" sap:VirtualizedContainerService.HintSize="504,1250" sap2010:WorkflowViewState.IdRef="ForEach`1_2" Values="[list_timestamps]">
<ui:ForEach.Body>
<ActivityAction x:TypeArguments="x:String">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:String" Name="past_sales" />
</ActivityAction.Argument>
<Sequence sap:VirtualizedContainerService.HintSize="468,1116" sap2010:WorkflowViewState.IdRef="Sequence_3">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence DisplayName="Body" sap:VirtualizedContainerService.HintSize="426,1024" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="ML_Input" />
<Variable x:TypeArguments="x:String" Name="ML_Output" />
<Variable x:TypeArguments="njl:JObject" Name="jsonOut" />
<Variable x:TypeArguments="njl:JObject" Name="prediction_json" />
<Variable x:TypeArguments="ui:GenericValue" Name="myTest" />
</Sequence.Variables>
<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:ReadTextFile Content="[ML_Input]" DisplayName="Read Text File" FileName="createPayload.txt" sap:VirtualizedContainerService.HintSize="384,79" sap2010:WorkflowViewState.IdRef="ReadTextFile_1" />
<Assign sap:VirtualizedContainerService.HintSize="384,60" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[ML_Input]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[ML_Input.Replace("<replacer>",past_sales.ToString)]</InArgument>
</Assign.Value>
</Assign>
<Assign sap:VirtualizedContainerService.HintSize="384,60" sap2010:WorkflowViewState.IdRef="Assign_3">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[ML_Input]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[ML_Input.Replace("\", "")]</InArgument>
</Assign.Value>
</Assign>
<WriteLine DisplayName="Write Line" sap:VirtualizedContainerService.HintSize="384,61" sap2010:WorkflowViewState.IdRef="WriteLine_1" Text="[ML_Input]" />
<uma:MLSkills ContinueOnError="{x:Null}" DelayAfter="{x:Null}" DelayBefore="{x:Null}" Name="{x:Null}" NumberOfRetries="{x:Null}" ResponseHeaders="{x:Null}" Result="{x:Null}" SelectedMLSkill="{x:Reference __ReferenceID0}" StatusCode="{x:Null}" TimeOutMs="{x:Null}" DisplayName="MLSkill" sap:VirtualizedContainerService.HintSize="384,350" sap2010:WorkflowViewState.IdRef="MLSkills_1" Item="[ML_Input]" JsonResponse="[ML_Output]" NextPageNum="2" RefreshList="False" TotalCount="5">
<uma:MLSkills.MLSkillList>
<scg:List x:TypeArguments="um:MLSkill" Capacity="8">
<um:MLSkill InputDescription="{x:Null}" OutputDescription="{x:Null}" AccessUri="https://aifabric-staging.deskover.com/mlskills/host/cf7ae654-02bd-412b-b0cd-a2738b31a9c3/customerchurn" Description="" Id="d208dfe1-9f90-4ca0-b856-9aa2d5c087f8" InputType="JSON" Name="CustomerChurn" TenantId="cf7ae654-02bd-412b-b0cd-a2738b31a9c3" />
<um:MLSkill AccessUri="https://aifabric-staging.deskover.com/mlskills/host/cf7ae654-02bd-412b-b0cd-a2738b31a9c3/customeremailclassification" Description="" Id="b1945030-9228-47a8-a9ac-e870c059aac9" InputDescription="Text to be classified as String: 'I loved this movie.'" InputType="JSON" Name="CustomerEmailClassification" OutputDescription="JSON with pedicted class name, associated confidence on that class prediction (between 0-1). For example: {\"prediction\": \"Positive\", \"confidence\": 0.9422031841278076,}" TenantId="cf7ae654-02bd-412b-b0cd-a2738b31a9c3" />
<um:MLSkill AccessUri="https://aifabric-staging.deskover.com/mlskills/host/cf7ae654-02bd-412b-b0cd-a2738b31a9c3/emailclassification" Description="" Id="4d881ddf-80f1-49cc-8bb6-ffbcc7532f87" InputDescription="Please provide the email body as input." InputType="JSON" Name="EmailClassification" OutputDescription="The output will be the index of the classification for the string array: {"Bank account or service", "Consumer Loan", "Credit card", "Credit reporting", "Debt collection", "Money transfers", "Mortgage", "Other financial service", "Payday loan", "Prepaid card", "Student loan"}. Additionally, the output will contain the confidence. " TenantId="cf7ae654-02bd-412b-b0cd-a2738b31a9c3" />
<um:MLSkill AccessUri="https://aifabric-staging.deskover.com/mlskills/95baf7a2-59c4-4438-93bb-55967f104904/cf7ae654-02bd-412b-b0cd-a2738b31a9c3/insuemailecassification" Description="Email Classification Skill" Id="4b925f56-11bf-4d89-a28c-5384915de3c5" InputDescription="Text to be classified as String: 'I loved this movie.'" InputType="JSON" Name="InsuEmailEcassification" OutputDescription="JSON with pedicted class name, associated confidence on that class prediction (between 0-1). For example: {\"prediction\": \"Positive\", \"confidence\": 0.9422031841278076,}" TenantId="cf7ae654-02bd-412b-b0cd-a2738b31a9c3" />
<um:MLSkill x:Name="__ReferenceID0" AccessUri="https://aifabric-staging.deskover.com/mlskills/host/cf7ae654-02bd-412b-b0cd-a2738b31a9c3/inventory-management" Description="" Id="470be960-f016-4350-9859-8b2ac55346d1" InputDescription="List of past 12 periods of sales. Example: “[1,2,3,4,5,6,7,8,9,10,11,12]”" InputType="JSON" Name="Inventory_Management" OutputDescription="{}{“prediction”: <Predicted Sales>}" TenantId="cf7ae654-02bd-412b-b0cd-a2738b31a9c3" />
</scg:List>
</uma:MLSkills.MLSkillList>
</uma:MLSkills>
<ui:DeserializeJson x:TypeArguments="njl:JObject" DisplayName="Deserialize JSON" sap:VirtualizedContainerService.HintSize="384,60" sap2010:WorkflowViewState.IdRef="DeserializeJson`1_1" JsonObject="[prediction_json]" JsonString="[ML_Output]" />
<AddToCollection x:TypeArguments="x:String" Collection="[predictions_list]" DisplayName="Add To Collection" sap:VirtualizedContainerService.HintSize="384,22" sap2010:WorkflowViewState.IdRef="AddToCollection`1_1" Item="[prediction_json("prediction").ToString]" />
</Sequence>
</Sequence>
</ActivityAction>
</ui:ForEach.Body>
</ui:ForEach>
</Sequence>
<Assign sap:VirtualizedContainerService.HintSize="546,60" sap2010:WorkflowViewState.IdRef="Assign_2">
<Assign.To>
<OutArgument x:TypeArguments="scg:List(x:String)">[predictions]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="scg:List(x:String)">[predictions_list]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</Activity>