Step: Set Value

This step can create a new variable in the package table. The value of the variable that is set can be either a string or integer, or it can use Freemarker template expressions to create new variables based on existing variable values.


Operates on table variable values

Allows Freemarker templates to reference values

  • Variable Name: The name of the variable to store the new value as.
  • Value: The contents of the variable you wish to set. Can be a string Hello, world, integer 0, or use Freemarker expressions to reference other values in the table ${names[0][0]} ${names[0][1]

Common uses for this step include combining multiple variables together using FreeMarker, converting one specific value in an array/table into a scalar/single variable (as in the image above), and setting an API key as a variable so it can be used in the Web Request step.

The majority of characters are allowed in the value, but the list below shows special character sequences preceeded with a \, otherwise known as escaped.

\"	Quotation mark (u0022)
\'	Apostrophe (a.k.a. apostrophe-quote) (u0027)
\\	Back slash (u005C)
  • To initialize a number to be used by the Calculate step:
    • Variable Name: riskScore
    • Value: 0
  • To create a new IRI with a generated ID
    • Variable Name: newIRI
    • Value: tag:myontology#widget-${uuid()}
  • To convert a specific value in an array/table to a scalar/single variable
    • Variable Name: userName
    • Value: ${userDetails[0][2]}
  • To combine values to create one new variable
    • Variable Name: fullName
    • Value: ${userDetails[0][2]} ${userDetails[0][3]}
  • step/set-value
  • Last modified: 2018/11/15 18:59