Book a demo

← Documentation

Adding fields to the method flow

The method flow Input and Output steps contain the metadata of the fields that the data consumer and data source send to each other. Therefore, when composing a contract's data flow, you must specify field metadata for each step.

Add fields to an Input or Output step

To add files to an input or output step perform the following:

  1. Click an Input or an Output step on the method flow.
    Add fields to an Input or Output step screenshot

  2. Add fields to the input and output step in one of three ways:

  • Add fields manually
  • copy fields from an asset
  • add fields from a spec file

Add fields to an Input or Output step screenshot

Add fields manually

You can add fields to the input and output elements by defining them from scratch one by one.

  1. Click an Input or an Output step on the method flow.

  2. Select Add fields manually screenshot Start adding fields.

  3. Type the Field Name, select its Type, and click Save.
    Add fields manually screenshot

  4. To add another field, click Add fields manually screenshot, select Add fields manually screenshot Add Field and repeat the steps above.
    Add fields manually screenshot

  5. To add a property field to a structure-type field, click the Add fields manually screenshot button adjacent to the field
    name and select Add fields manually screenshot Add Lead Field.

Add fields from a JSON file.

You can add fields to the flow step by uploading a JSON file that describes the input or output fields.

  1. Prepare a JSON file describing the input or output fields.
    [
      {
        "fullName": "John Dao",
        "age": 30,
        "smoking": false,
        "policy": {
            "polNum": "89526",
            "startDate": "2022-10-31 00:00:00"
        }
      },
      {
        "fullName": "Joann Doe",
        "age": 20,
        "smoking": true,
        "policy": {
            "polNum": "99256",
            "startDate": "2022-12-31 00:00:00"
        }
      }
    ]
  1. Select Adding fields to the method flow screenshot Upload JSON file and upload the file.

  2. Review the created field hierarchy.
    Adding fields to the method flow screenshot

Copy fields from an asset

You can copy fields to the Input and Output flow steps by copying them from one of the assets attached to your project.

To copy fields from an asset, perform the following:

  1. Click an Input or an Output step on the method flow.

  2. Select Copy fields from an asset screenshot Copy from Asset. The modules assigned to your projects are displayed.

  3. Select the module that contains the asset from which to copy fields and click Next.
    Copy fields from an asset screenshot

  4. Select the asset from which to copy fields and click Select Asset.
    Copy fields from an asset screenshot

  5. Select whether to copy the asset input or output fields and click Copy Asset Model.
    Copy Asset Model

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy