How to Create a Boundary Condition Implementing a Pretest Action in PIOE

print

A pretest action can be used to implement a boundary condition

Example:

[PARENT_INPUT] PARENT IMAGES [OBJECT_PASS1_INITIALIZATION] ;
 
 
//Initialize Actions

 [OBJECT_PASS1_INITIALIZATION] OBJECT
    CONDITION     
       ACTION
          [LOGIC_START_JOB]
 ;
 
[LOGIC_START_JOB] LOGIC GOTO [OBJECT_BOUNDARY];
 
 
//----------------------------------------------------------------------------
 
[OBJECT_BOUNDARY] OBJECT BOUNDARY SCAN 0
    BEGINWINDOWX 115056 BEGINWINDOWY 36000
    ENDWINDOWX MAX ENDWINDOWY 43632
       PRETESTACTION
       //Pretest action to define the boundary based on barcode contents
            [EXTRACT_BARCODE]   AND
           [EXTRACT_PAGE_IN_DOC]
        TEST
            [TEST_PAGE_1] 
        ACTION
             [OBJECT_MAIN_ACTIONS]         
;
 
[EXTRACT_BARCODE] EXTRACT [VARIABLE_BARCODE_DATA]   FROM BARCODEDATA;
[EXTRACT_PAGE_IN_DOC] EXTRACT [VARIABLE_PAGE_IN_DOC] EQ [VARIABLE_BARCODE_DATA] FROM 29 LEN 3;
 
//Matches information extracted from the barcode
[TEST_PAGE_1] TEST [VARIABLE_PAGE_IN_DOC] MATCHES "001";
 
//----------------------------------------------------------------------------
//Main Actions

[OBJECT_MAIN_ACTIONS] OBJECT REGION SCAN 0 
    BEGINWINDOWX 0 BEGINWINDOWY 0
        TEST
            NEWPARENT
        ACTION
     //Actions to be done on the 1st side of document
    ENDWINDOWX 0 ENDWINDOWY 0
;

UPDATED: August 07, 2017

Contact Us