A module which allows to perform data validations. If the validation fails, an Error is thrown. The error type might vary but it will always be a child of VALIDATION:VALIDATION

Configurations


Config

Default configuration

Parameters

Name Type Description Default Value Required

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x 

I18n

 

Operations

Custom Validator

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Class

String

 

Ref

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:VALIDATION  

Is Email

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Email

String

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_EMAIL  

Is Empty

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

Any

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:NOT_EMPTY  

Is False

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Expression

Boolean

false

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_BOOLEAN  

Is IP

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Ip

String

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_IP  

Is Not Empty

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

Any

#[payload]

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:EMPTY  

Is Not Null

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

Any

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:NULL  

Is Null

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

Any

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:NOT_NULL  

Is Number

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

String

x 

Locale

String

 

Pattern

String

 

Min Value

String

 

Max Value

String

 

Number Type

Enumeration, one of:

  • INTEGER

  • LONG

  • SHORT

  • DOUBLE

  • FLOAT

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_NUMBER  

Is Time

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Time

String

x 

Locale

String

 

Pattern

String

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_TIME  

Is True

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Expression

Boolean

false

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_BOOLEAN  

Is URL

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

URL

String

x 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_URL  

Matches Regex

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

String

x 

Regex

String

x 

Case Sensitive

Boolean

true

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:MISMATCH  

Validate Size

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x 

Value

Any

x 

Min

Number

0

 

Max

Number

 

Message

String

 

For Configurations.

Throws

  • VALIDATION:INVALID_SIZE  

All

Perform a list of nested validation operations and informs only one MultipleValidationResult which summarizes all of the found errors (if any).

If throwsException is true, then the ValidationResult is communicated by throwing a ValidationException. On the other hand, if throwsException is false, then the ValidationResult is set as the message payload.

When configured through XML, all the validations must include the All the child processors must contain the validator-message-processor substitution group.

Parameters

Name Type Description Default Value Required

Validations

the nested validation operations

x 

Throws

  • VALIDATION:MULTIPLE  

Types

I18n

Field Type Default Value

Bundle Path

String

Locale

String