Skip to content

Commit

Permalink
Update process template with the refactored activities pack. Update t…
Browse files Browse the repository at this point in the history
…he category of activities.
  • Loading branch information
allenlooplee committed Apr 9, 2020
1 parent 6cbaa45 commit af4ee1b
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 48 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Category" xml:space="preserve">
<value>Ccint.Ocr</value>
<value>Ccint.OCR</value>
<comment>category</comment>
</data>
<data name="Collection" xml:space="preserve">
Expand Down
28 changes: 17 additions & 11 deletions templates/CcintOcrBasicProcess/Main.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Activity mc:Ignorable="sap sap2010" x:Class="Main" mva:VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="778,788.5" sap2010:WorkflowViewState.IdRef="Main_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:coa="clr-namespace:Ccint.Ocr.Activities;assembly=Ccint.Ocr.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:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:usa="clr-namespace:UiPath.Shared.Activities;assembly=Ccint.Ocr.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Activity mc:Ignorable="sap sap2010" x:Class="Main" mva:VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="778,788.5" sap2010:WorkflowViewState.IdRef="Main_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:coa="clr-namespace:Cloud.Ocr.Activities;assembly=Cloud.Ocr.Activities" xmlns:coa1="clr-namespace:Ccint.Ocr.Activities;assembly=Ccint.Ocr.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:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:usa="clr-namespace:UiPath.Shared.Activities;assembly=Cloud.Ocr.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextExpression.NamespacesForImplementation>
<scg:List x:TypeArguments="x:String" Capacity="24">
<x:String>System.Activities.XamlIntegration</x:String>
Expand Down Expand Up @@ -78,7 +78,7 @@
<av:PointCollection x:Key="ConnectorLocation">360,313.5 360,363.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence sap2010:Annotation.AnnotationText="This step checks the next image to process, and assign its path to imagePath variable if any." DisplayName="Load Image" sap:VirtualizedContainerService.HintSize="304,252" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence sap2010:Annotation.AnnotationText="This step checks the next image to process, and assign its path to imagePath variable if any." DisplayName="Load Image" sap:VirtualizedContainerService.HintSize="200,68" sap2010:WorkflowViewState.IdRef="Sequence_1">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
Expand Down Expand Up @@ -126,29 +126,27 @@
<av:PointCollection x:Key="ConnectorLocation">50,520 20,520 20,279.5 260,279.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Sequence sap2010:Annotation.AnnotationText="This step recognizes the image, uses the result, and post-process the image (e.g. archive the image)." DisplayName="Process Image" sap:VirtualizedContainerService.HintSize="200,68" sap2010:WorkflowViewState.IdRef="Sequence_10">
<Sequence sap2010:Annotation.AnnotationText="This step recognizes the image, uses the result, and post-process the image (e.g. archive the image)." DisplayName="Process Image" sap:VirtualizedContainerService.HintSize="476,490" sap2010:WorkflowViewState.IdRef="Sequence_10">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsAnnotationDocked">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<coa:CcintOcrScope ContinueOnError="{x:Null}" DisplayName="Ccint OCR Scope" sap:VirtualizedContainerService.HintSize="434,344" sap2010:WorkflowViewState.IdRef="CcintOcrScope_1" RecognizerConfig="[recognizerConfig]">
<coa:CcintOcrScope.Body>
<coa:OcrScope ContinueOnError="{x:Null}" DisplayName="OCR Scope" sap:VirtualizedContainerService.HintSize="434,398" sap2010:WorkflowViewState.IdRef="OcrScope_1">
<coa:OcrScope.Body>
<ActivityAction x:TypeArguments="usa:IObjectContainer">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="usa:IObjectContainer" Name="CcintScope" />
<DelegateInArgument x:TypeArguments="usa:IObjectContainer" Name="OcrScope" />
</ActivityAction.Argument>
<Sequence sap2010:Annotation.AnnotationText="Drop the OCR activity you want to use here. The Bank Card here is just for demostration." DisplayName="Do" sap:VirtualizedContainerService.HintSize="304,258" sap2010:WorkflowViewState.IdRef="Sequence_11">
<Sequence DisplayName="Do" sap:VirtualizedContainerService.HintSize="304,214" sap2010:WorkflowViewState.IdRef="Sequence_11">
<Sequence.Variables>
<Variable x:TypeArguments="njl:JObject" Name="ocrResult" />
<Variable x:TypeArguments="ui:GenericValue" Name="cardNumber" />
</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="IsPinned">False</x:Boolean>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<coa:BankCardActivity ContinueOnError="{x:Null}" DisplayName="Bank Card" sap:VirtualizedContainerService.HintSize="262,22" sap2010:WorkflowViewState.IdRef="BankCardActivity_1" ImagePath="[imagePath]" Result="[ocrResult]" />
Expand All @@ -162,8 +160,16 @@
</Assign>
</Sequence>
</ActivityAction>
</coa:CcintOcrScope.Body>
</coa:CcintOcrScope>
</coa:OcrScope.Body>
<coa:OcrScope.OcrClient>
<ActivityAction x:TypeArguments="usa:IObjectContainer">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="usa:IObjectContainer" Name="OcrScope" />
</ActivityAction.Argument>
<coa1:CcintOcrClientActivity ContinueOnError="{x:Null}" DisplayName="Ccint OCR Client" sap:VirtualizedContainerService.HintSize="200,22" sap2010:WorkflowViewState.IdRef="CcintOcrClientActivity_1" RecognizerConfig="[recognizerConfig]" />
</ActivityAction>
</coa:OcrScope.OcrClient>
</coa:OcrScope>
</Sequence>
<FlowStep.Next>
<x:Reference>__ReferenceID0</x:Reference>
Expand Down
2 changes: 1 addition & 1 deletion templates/CcintOcrBasicProcess/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Create a process that uses Ccint OCR Activities Pack for recognition of China-specific invoices, cards, and cars scenarios.",
"main": "Main.xaml",
"dependencies": {
"Ccint.Ocr.Activities": "[0.1.7393.32163]",
"Ccint.Ocr.Activities": "[0.2.7404.38728]",
"UiPath.Excel.Activities": "[2.7.2]",
"UiPath.Mail.Activities": "[1.7.2]",
"UiPath.System.Activities": "[19.10.1]",
Expand Down
2 changes: 1 addition & 1 deletion tests/CcintOcrBasicTests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Basic tests for Ccint OCR Activities Pack",
"main": "RunAllTests.xaml",
"dependencies": {
"Ccint.Ocr.Activities": "[0.2.7404.38195]",
"Ccint.Ocr.Activities": "[0.2.7404.38728]",
"Custom.Activities.VariableComparer": "[2.1.6]",
"TestingFrameworkUi": "[1.3.3]",
"UiPath.Excel.Activities": "[2.5.2]",
Expand Down

0 comments on commit af4ee1b

Please sign in to comment.