Conditional Step

It is possible to make any step conditional by putting condition-step somewhere before the step you want to be executed conditionally. The conditionally executed step must have defined a dependent property array with N conditions to be met in order to be executed.

Conditional step supports the “select” field type only.

"dependentProperties": [{"name": "select-mapper", "value":"integrateMapper"}],

You can place several condition-steps in step.json but a better solution is to have only one conditional step with more field selectors like in the example below.

Type

Description

Type

Description

condition-step

Stores information provided by a generic form as a row in a defined Company Parameter table.

Specific Attributes

Attribute Name

Description

Example

Required

Attribute Name

Description

Example

Required

mandatoryFields

Conditional select fields.

"mandatoryFields": [ { "name": "select-mapper", "type": "select", "label": "Select Mapper", "required": true, "options": [ { "name": "loadMapper.type", "label": "load-mapper", "value": "loadMapper" }, { "name": "integrateMapper.type", "label": "integrate-mapper", "value": "integrateMapper" } ] } ] }

true

Example

{ "type": "condition-step", "name": "condition-step-1", "ui": { "title": "Conditional Mapper step", "description": "Choose Mapper you want to execute, the other one will be skipped" }, "mandatoryFields": [ { "name": "select-mapper", "type": "select", "label": "Select Mapper", "required": true, "options": [ { "name": "loadMapper.type", "label": "load-mapper", "value": "loadMapper" }, { "name": "integrateMapper.type", "label": "integrate-mapper", "value": "integrateMapper" } ] }, { "name": "trigger-logic", "type": "select", "label": "Select Mapper", "required": true, "options": [ { "name": "loadMapper.type", "label": "load-mapper", "value": "logic1" }, { "name": "integrateMapper.type", "label": "integrate-mapper", "value": "logic1" } ] } ] }, { "type": "integration-csv-mapper", "name": "integrate-mapper", "mapperType": "integrateMapper", "dependentProperties": [{"name": "select-mapper", "value":"integrateMapper"}], "mapperPlaceholder": "mapper", "mapper": [], "placeholders": [ { "name": "pfx-csv.settings", "params": [ "delimiter", "quoteCharacter", "escapeCharacter" ] }, { "name": "pfx-api.settings", "params": [ "objectType", "pricingParameterName", "pricingParameterId", "dsUniqueName" ] } ] }, { "type": "integration-csv-mapper", "name": "load-mapper", "dependentProperties": [{"name": "select-mapper", "value":"loadMapper"}], "mapperType": "loadMapper", "mapperPlaceholder": "mapper", "mapper": [], "placeholders": [ { "name": "pfx-csv.settings", "params": [ "delimiter", "quoteCharacter", "escapeCharacter" ] }, { "name": "pfx-api.settings", "params": [ "objectType", "pricingParameterName", "pricingParameterId", "dsUniqueName" ] } ] }

Fetching Selected Value in Integration Template

Given the following conditional step definition:

You can access a selected value inside the template by referencing the select name using the curly bracket notation, for example:

PlatformManager version 1.75.0