Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

AlternativeValidators

AlternativeValidators

The
AlternativeValidators
validator contains a set of nested validators that apply to the input. Use an
AlternativeValidators
to apply OR logic to a set of validation conditions. The data is valid if it satisfies any of the conditions.
The following table describes the properties of the
AlternativeValidators
validator:
Property
Description
allow_empty_value
Determines whether an empty input is accepted as valid. You can choose one of the following options:
  • Selected. Empty input is valid.
  • Cleared. Empty input is not valid.
Default is cleared.
disabled
Determines whether the Script ignores the component and all of the child components. Use this property to test, debug, and modify a Script. You can choose one of the following options:
  • Selected. The Script ignores the component.
  • Cleared. The Script applies the component.
The default is cleared.
name
A descriptive label for the component. This label appears in the log file and the
Events
view. Use the
name
property to identify the component that caused the event.
negation
Determines whether the validation condition is negated. You can choose one of the following options:
  • Selected. If the condition is true, the input is not valid, and if the condition is false, the input is valid.
  • Cleared. If the condition is true, the input is valid, and if the condition is false, the input is not valid.
Default is cleared.
notify
Defines the name of a notification. If the input does not conform to the validation condition, the validator triggers the notification. For more information, see Notifications. Default is cleared.
optional
Determines whether a component failure causes the parent component to fail. You can choose one of the following options:
  • Selected. Component failure does not cause the parent component to fail.
  • Cleared. Component failure causes the parent component to fail.
Default is cleared. For more information about component failure, see Failure Handling.
remark
A user-defined comment that describes the purpose or action of the component.
selector
Determines the criterion for selecting a validator from among the validators nested below the
AlternativeValidators
component. You can choose one of the following options:
  • ScriptOrder. The Parser tests the nested validators in the sequence defined in the Script. It accepts the first validator that succeeds. If all the validators fail, the input is invalid.
  • NameSwitch. The Parser searches for the nested validator whose
    name
    property is specified in the data holder defined in
    option_name
    . It ignores the other validators. If the named validator fails, the input is invalid.
Default is ScriptOrder.
transformers
Defines a list of transformers that apply to the input. The validation condition is applied to the result of the transformers. The transformers have only a temporary effect on the data for the purpose of validation. The input is not permanently altered.


Updated June 14, 2019