Platform Explorer / Nuxeo Platform 5.6

Operation Context.SetVar

Set Context Variable

Description

Set a context variable given a name and the value. To compute the value at runtime from the current context you should use an EL expression as the value. This operation works on any input type and return back the input as the output.
Operation id Context.SetVar
Category Execution Context
Label Set Context Variable
Requires
Since

Parameters

Name Description Type Required Default value
name string yes  
value object yes  

Signature

Inputs void
Outputs void

Implementation information

Implementation class org.nuxeo.ecm.automation.core.operations.SetVar
Contributing component BuiltIn

JSON definition

{
  "id" : "Context.SetVar",
  "label" : "Set Context Variable",
  "category" : "Execution Context",
  "requires" : null,
  "description" : "Set a context variable given a name and the value. To compute the value at runtime from the current context you should use an EL expression as the value. This operation works on any input type and return back the input as the output.",
  "url" : "Context.SetVar",
  "signature" : [ "void", "void" ],
  "params" : [ {
    "name" : "name",
    "description" : "",
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "value",
    "description" : "",
    "type" : "object",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}