OPH_SET

Description

Type

Metadata access.

Behaviour

Set a variable in the workflow environment. See section on runtime variables for further information.

Parameters

  • key: name of the parameter. It should comply with IEEE Std 1003.1-2001 conventions, unless brackets {} are adopted to refer it.
  • value: value of the parameter. By default, it will se to “1”. It can be accessed with @key or @{key}.
  • id: workflow identifier. By default the hosting workflow is selected. The target workflow must have been submitted in the same session.

Examples

Set the parameter “var” to “10”:

[OPH_TERM] >>  oph_set key=var;value=10;

Set the parameter “var” to the result of the mathematical expression “10/2+sqrt(4)”:

[OPH_TERM] >>  oph_set key=var;value=EVAL(10/2+sqrt(4));

Arguments

Argument name Type Mandatory Values Default Min/Max-value
key “string” “yes”      
value “string” “no”   “-“  
id “int” “no”   “@OPH_WORKFLOW_ID” “1” /