Platform Explorer / Nuxeo Platform 6.0

Operation Context.SetWorkflowVar

Set Workflow Variable

Description

Set a workflow variable. The workflow variable must exists on the workflow. If no workflowId is specified the variable is set on the current workflow.To compute the value at runtime from the current context you should use a MVEL expression as the value. This operation works on any input type and return back the input as the output.
Operation id Context.SetWorkflowVar
Category Workflow Context
Label Set Workflow Variable
Requires Workflow
Since

Parameters

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

Signature

Inputs void
Outputs void

Implementation information

Implementation class org.nuxeo.ecm.platform.routing.core.api.operation.SetWorkflowVar
Contributing component org.nuxeo.ecm.platform.routing.operations

JSON definition

{
  "id" : "Context.SetWorkflowVar",
  "label" : "Set Workflow Variable",
  "category" : "Workflow Context",
  "requires" : "Workflow",
  "description" : "Set a workflow variable. The workflow variable must exists on the workflow. If no workflowId is specified the variable is set on the current workflow.To compute the value at runtime from the current context you should use a MVEL expression as the value. This operation works on any input type and return back the input as the output.",
  "url" : "Context.SetWorkflowVar",
  "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" : [ ]
  }, {
    "name" : "workflowInstanceId",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}