-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.xaml
158 lines (158 loc) · 11.5 KB
/
Main.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
156
157
158
<Activity mc:Ignorable="sap sap2010" x:Class="Main" 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:sco="clr-namespace:System.Collections.ObjectModel;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="InTexto" Type="InArgument(x:String)" />
<x:Property Name="outClassific" Type="OutArgument(x:String)" />
<x:Property Name="InDelay" Type="InArgument(x:TimeSpan)" />
</x:Members>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap:VirtualizedContainerService.HintSize>787,1644</sap:VirtualizedContainerService.HintSize>
<sap2010:WorkflowViewState.IdRef>ActivityBuilder_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>
<x:String>UiPath.MLServices</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Newtonsoft.Json</x:String>
<x:String>System.Activities.DynamicUpdate</x:String>
<x:String>System.Collections.ObjectModel</x:String>
<x:String>System.Dynamic</x:String>
<x:String>System.ComponentModel</x:String>
<x:String>System.Collections.Specialized</x:String>
<x:String>System.Reflection</x:String>
<x:String>System.Runtime.InteropServices</x:String>
<x:String>UiPath.Web.Activities</x:String>
<x:String>System.Runtime.Serialization</x:String>
<x:String>UiPath.MLServices.Enums</x:String>
<x:String>UiPath.MLServices.Activities</x:String>
<x:String>UiPath.Shared.Activities</x:String>
<x:String>System.Security</x:String>
<x:String>UiPath.Mail</x:String>
<x:String>UiPath.Mail.IMAP.Activities</x:String>
<x:String>UiPath.Mail.Activities</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>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>UiPath.MLServices</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>System.ValueTuple</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>UiPath.CV</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
<AssemblyReference>UiPath.Mail</AssemblyReference>
<AssemblyReference>Microsoft.Bcl.AsyncInterfaces</AssemblyReference>
<AssemblyReference>System.Memory</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationCore</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.Web.Activities</AssemblyReference>
<AssemblyReference>UiPath.MLServices.Activities</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities</AssemblyReference>
<AssemblyReference>UiPath.Mail.Activities</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>UiPath.Mail.Activities.Design</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<Sequence sap:VirtualizedContainerService.HintSize="797,1579" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="result" />
<Variable x:TypeArguments="njl:JObject" Name="category" />
<Variable x:TypeArguments="x:Int32" Name="statusCode" />
<Variable x:TypeArguments="scg:Dictionary(x:String, x:String)" Name="headersML" />
<Variable x:TypeArguments="x:Double" Default="0" Name="confidence" />
</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>
<If Condition="[String.IsNullOrEmpty(InTexto)]" sap:VirtualizedContainerService.HintSize="755,425" sap2010:WorkflowViewState.IdRef="If_1">
<If.Then>
<ui:InputDialog Options="{x:Null}" OptionsString="{x:Null}" DisplayName="Input Dialog" sap:VirtualizedContainerService.HintSize="334,238" sap2010:WorkflowViewState.IdRef="InputDialog_1" IsPassword="False" Label="Entre com a frase a ser classificada" Title="Text Classification">
<ui:InputDialog.Result>
<OutArgument x:TypeArguments="x:String">[InTexto]</OutArgument>
</ui:InputDialog.Result>
</ui:InputDialog>
</If.Then>
</If>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="755,91" sap2010:WorkflowViewState.IdRef="LogMessage_2" Level="Info" Message="["Iniciando execução do ML para classificação do texto"]" />
<uma:MLSkills ContinueOnError="{x:Null}" DelayAfter="{x:Null}" DelayBefore="{x:Null}" Name="{x:Null}" NumberOfRetries="{x:Null}" Result="{x:Null}" SelectedMLSkill="{x:Reference __ReferenceID0}" TimeOutMs="{x:Null}" ApiKey="1e3f00a8-c664-491d-88ef-edd70eaaef4b" Connection="Robot" DisplayName="MLSkill" ExternApiFileType="JSON" sap:VirtualizedContainerService.HintSize="755,410" sap2010:WorkflowViewState.IdRef="MLSkills_1" Item="[InTexto]" JsonResponse="[result]" NextPageNum="2" RefreshList="False" ResponseHeaders="[headersML]" SkillURL="https://ai-stg-uipath.deskover.com/public/mlskills/98b4b292-c796-428b-8507-8f2ac4d39fbd/c8936d0c-f51b-4dea-8d49-df5f4cce8b5b/tc" StatusCode="[statusCode]" TotalCount="1">
<uma:MLSkills.MLSkillList>
<scg:List x:TypeArguments="um:MLSkill" Capacity="4">
<um:MLSkill x:Name="__ReferenceID0" AccessUri="https://ai-stg-uipath.deskover.com/mlskills/98b4b292-c796-428b-8507-8f2ac4d39fbd/c8936d0c-f51b-4dea-8d49-df5f4cce8b5b/textclassification" AccountId="98b4b292-c796-428b-8507-8f2ac4d39fbd" Description="" Id="42d7d6d2-b09b-4488-9bcf-10906daa09f7" InputDescription="Text to be classified as String: 'I loved this movie.'" InputType="JSON" Name="TextClassification" OutputDescription="JSON with pedicted class name, associated confidence on that class prediction (between 0-1). For example: {\"prediction\": \"Positive\", \"confidence\": 0.9422031841278076,}" ProjectId="a364ab51-09c2-429f-95b3-5399eaf7664a" TenantId="c8936d0c-f51b-4dea-8d49-df5f4cce8b5b" />
</scg:List>
</uma:MLSkills.MLSkillList>
</uma:MLSkills>
<If Condition="[statusCode = 200]" sap:VirtualizedContainerService.HintSize="755,441" sap2010:WorkflowViewState.IdRef="If_4">
<If.Then>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Invoke ProcessClassificationResult workflow" sap:VirtualizedContainerService.HintSize="334,112" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_1" LogEntry="No" LogExit="No" UnSafe="False" WorkflowFileName="ProcessClassificationResult.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="result">[result]</InArgument>
<OutArgument x:TypeArguments="njl:JObject" x:Key="category">[category]</OutArgument>
<InOutArgument x:TypeArguments="x:Double" x:Key="confidence">[confidence]</InOutArgument>
<OutArgument x:TypeArguments="x:String" x:Key="outClassific">[outClassific]</OutArgument>
<InOutArgument x:TypeArguments="x:TimeSpan" x:Key="InDelay">[InDelay]</InOutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</If.Then>
<If.Else>
<Sequence DisplayName="MLFailedExecution" sap:VirtualizedContainerService.HintSize="376,283" sap2010:WorkflowViewState.IdRef="Sequence_3">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="334,91" sap2010:WorkflowViewState.IdRef="LogMessage_4" Level="Info" Message="["Erro ao executar Machine Learning, por favor tente novamente." + vbCrLf + "Code: " + statusCode.ToString]" />
<Assign DisplayName="AssignResultErr" sap:VirtualizedContainerService.HintSize="334,60" sap2010:WorkflowViewState.IdRef="Assign_4">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[outClassific]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Erro ao executar Machine Learning, por favor tente novamente.</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</If.Else>
</If>
</Sequence>
</Activity>