Conditional activation

Conditional activation allows a component to be activated depending on specified criteria.

Use the Activate option in the General options for a component to enable the component. Choose one of the following states for the Active option to enable or disable the component:

  • Yes enables the component.
  • No disables the component.

    While a component is disabled it does not perform any actions during file processing.

  • Enter a custom condition. The condition should be specified in the form of the expression which is interpreted as common Boolean value: TRUE, YES, ON, 1 or FALSE, NO, OFF, 0.

    The expression has C-like syntax and is evaluated based on operators and operands. The expression is case-insensitive. If you enter invalid condition, the component becomes inactive by default.

Examples of simple expressions:

Expression Description
YES The component is always active.
NO The component is never active.
~CMP::SomeRrt~ The component is active if some component replaces the RRT ~CMP::SomeRrt~ with one of TRUE, YES, ON, or 1.

Examples of complex expressions:

Expression Description
~FRO::PagesCount~ < 50 The component is active if the number of pages in the input file of the OPOCR component is less than 50. Use an expression like this one to check values that are only available during processing.
"Y" + "e" + "S" The component is always active, because the result of this expression is string "YeS". This string is interpreted as Boolean YES (TRUE).
("~PCF::FileName~" >="a") & ("~PCF::FileName~" < "e") The component is active if input file name starts from "a", "b", "c" or "d" (case-sensitive).
Note: When you enter one of the Boolean constants FALSE, NO, OFF, 0, all the options in the component configuration become disabled. If you enter any other expression which is interpreted as Boolean NO (FALSE) or as an invalid condition, the component configuration allows you to manipulate the settings, but the component remains inactive at run time