Sequence of Validation pipeline

The Validation pipeline will be executed as follows (illustrated in the image below):

  1. Initialize Variables Execute Validation>Code tab>On Initialize function. Execute Code tab>Validation steps function.

  2. The Validation Step sequences are:

    1. Initialize Variables

    2. Execute Code>On Initialize

    3. Execute Criteria

    4. If Criteria is True, Execute Code>On True

    5. If Criteria is False, Execute Code>On False

  3. Depending on the Exit Validation Action value (True or False)

  4. Execute Validation>Code tab>On Validation step success or On Validation step fail function

  5. Execute Validation>Code tab>On Exit function

  6. The validation pipeline exits correctly when the Action Set Validation Response is invoked

  7. Error at any point in execution, Exit Validation with an error message.

The following image illustrates sequences when a API gateway receives data:

  1. The Validation pipeline and Flow details are configured in the API gateway template.

  2. Data enters the Langstack application to be processed.

  3. After the Langstack application checks, it enters the dedicated API gateway for the API.

  4. The data with the associated Validation pipeline and Flow are passed to the API from the API gateway.

  5. If the API created or updated an entity record with a Validation pipeline or a Flow associated with the API gateway, the entity record is then passed to the Validation pipeline before storing the data into the target entity. The Flow is triggered after the entity record is created or updated.

    The following image represents how a Validation pipeline works with data flow through the API gateway and API.

Last updated