UIMA
  1. UIMA
  2. UIMA-1750

Tutorial and Developers' Guides: setActionOnMaxError

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1SDK
    • Component/s: Documentation
    • Labels:
      None

      Description

      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:

      
      //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");
      
      

      The first instance seems wrongly commented, while the second wrongly placed.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        174d 7h 34m 1 Marshall Schor 15/Sep/10 19:58
        Marshall Schor made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Marshall Schor [ schor ]
        Fix Version/s 2.3.1SDK [ 12315344 ]
        Resolution Fixed [ 1 ]
        Hide
        Marshall Schor added a comment -

        Thanks for pointing this out.

        Show
        Marshall Schor added a comment - Thanks for pointing this out.
        Prokopis Prokopidis created issue -

          People

          • Assignee:
            Marshall Schor
            Reporter:
            Prokopis Prokopidis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development