[ 
https://issues.apache.org/jira/browse/UIMA-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor closed UIMA-1750.
--------------------------------

         Assignee: Marshall Schor
    Fix Version/s: 2.3.1SDK
       Resolution: Fixed

Thanks for pointing this out.

> Tutorial and Developers' Guides: setActionOnMaxError
> ----------------------------------------------------
>
>                 Key: UIMA-1750
>                 URL: https://issues.apache.org/jira/browse/UIMA-1750
>             Project: UIMA
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Prokopis Prokopidis
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.3.1SDK
>
>
> In "UIMA Tutorial and Developer's guide", section 3.3.2 "Configuring a 
> Collection Processing Engine Descriptor Programmatically", the example code 
> contains a repetition of the setActionOnMaxError method call:
> {code::borderStyle=solid}
> //Continue, despite errors and skip bad Cas
> personTitleProcessor.setActionOnMaxError("terminate");
> ...
> //  Define and add CAS Consumer
> CpeIntegratedCasProcessor consumerProcessor = 
> CpeDescriptorFactory.produceCasProcessor("Printer");
> consumerProcessor.setDescriptor([descriptor]);
> //Define batch size
> consumerProcessor.setBatchSize(100);
> //Terminate CPE on max errors
> personTitleProcessor.setActionOnMaxError("terminate");
> {code}
> The first instance seems wrongly commented, while the second wrongly placed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to