Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Method
Description

redivis.parameter(name[, options])

Return a Parameter within the default workflow, or given its fully qualified reference (owner.workflow.parameter).

Return a Parameter within a specific workflow.

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
Description

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

Method
Description

Create the parameter.

Delete the parameter.

Check whether the parameter exists.

Fetch the parameter's metadata, populating parameter.properties.

Return the parameter's values.

Update the parameter's name, type, or values.

Was this helpful?