Propagate a Schema Backward

The project, PE_Backward_Schema_Propagation_Contacts, demonstrates the schema that suggests a feature of the PipeLine Execute Snap. It contains the following files:

  • PE_Backward_Schema_Propagation_Contacts_Parent

  • PE_Backward_Schema_Propagation_Contacts_Child

  • contact.schema (Schema file)

  • test.json (Output file)

The parent pipeline is shown below:

example-backward-schema-propagation-contacts-parent.slp

The child pipeline is as shown below:

example-backward-schema-propagation-contacts-child.slp

The PipeLine Execute Snap is configured as:

The following schema is provided in the JSON Formatter Snap. It has three properties - $firsName, $lastName, and $age. This schema is back propagated to the parent pipeline.

The parent Pipeline must be validated in order for the child Pipeline's schema to be back-propagated to the parent Pipeline. Below is the Mapper Snap in the parent pipeline:

Notice that the Target Schema section shows the three properties of the schema in the child pipeline:



On execution, the data passed in the Mapper Snap will be written into the test.json file in the child Pipeline. The exported project is available in the Downloads section below.

Downloads

Note: To successfully reuse pipelines:
  1. Download and import the Pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide Pipeline parameters as applicable.