Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Value

name

favorite_offer

value

${offers}

JSON code that was saved in the variable offers with the HTTPRestManager
Code Block
languagejs
{
    "services": {
        "spread": 2€,
        "make": 5€,
        "deliver": 10€,
    },
    "products": [
        {
            "name": "Cranberries",
            "color": "red",
        },
        {
            "name": "Mangos",
			"color": "orange",
        },
        {
            "name": "Bananas",
            "color": "yellow",
        },
    ]
}

searchInJson

products[1].name

product[${number}].name (if the variable 'number' is set to 1 in the smartformform)

This results in the process variable 'favorite_offer' being set to 'Mangos'



Example:
In the example, we have a part of the process flow for IT-Hardware Request. ProcessVariableSetter actionhandler is added in the ‘forward request for approval' task node. Variable status from the smartform form is entered for the parameter name. The new value of the parameter name in the smartform form will be the 'forward request for approval’ which was set for the parameter value.

...