Home > For Designers > Streams > Stream Details > Stream Definition > Validations

Validations

Validations on a data component specify specific data characteristics that must be true before data can be stored.

 

A document can have multiple validations. Each is executed in the sequence they were specified.

 

Validations are composed of Execution Conditions and Actions.

 

Execution Conditions

If the specified conditions evaluates to 'TRUE', then the specified actions are executed. 
An execution condition can be of three types:

Actions

Examples

Example: Match All

In this example, all the conditions specified have to be evaluated to true to pass the evaluation. An example of this is if 

        Incident.Country  equals US

        Incident.Zip equals {leave it blank}

 

In this scenario, the validation action is taken only if the country is US and the Zip field is empty.

 

Example: Expressions

Some validations are too complex to be handled through simple specifications like those above. For those validations, Custom expressions can be created. Here, fields from the SiteAssessment data component are referenced to make the expression.

 

In this example, an error is triggered if it is indicated in an assessment that followup is needed, but a followup date has not been specified.

   

The validation below will trigger if Follow Up date is not a future date