Parameter
class Parameter
Parameters are named lists of values within a workflow, which can be referenced in the workflow's transforms (e.g., to filter data). Various methods allow you to create, update, and delete parameters, and to read their values.
Constructors
redivis.parameter(name[, options])
Return a Parameter within the default workflow, or given its fully qualified reference (owner.workflow.parameter).
Workflow.parameter(name)
Return a Parameter within a specific workflow.
Workflow.listParameters([maxResults])
List the Parameters of a workflow.
Examples
const workflow = redivis.workflow('jane.my_workflow');
const parameter = await workflow.parameter('states').create({ values: ['CA', 'NY'] });
await parameter.update({ values: ['CA', 'NY', 'TX'] });
await parameter.getValues(); // ['CA', 'NY', 'TX']
await parameter.delete();Attributes
name
The parameter's name.
workflow
The Workflow that the parameter belongs to.
properties
An object containing the API resource representation of the parameter. This will only be populated after certain methods are called, particularly the get method.
Methods
Parameter.create(options)
Create the parameter.
Delete the parameter.
Check whether the parameter exists.
Fetch the parameter's metadata, populating parameter.properties.
Return the parameter's values.
Parameter.update(options)
Update the parameter's name, type, or values.
Was this helpful?

