Overview

Cobalt supports templating (dynamic variables) in creating workflows. This essentially means that users can use these variables in their application workflows and API Proxies and authorization settings.

Using these templates, users can access data from previous nodes in workflows and end-users UDF.

The templates are keywords enclosed within double-curly braces {{}}, with specific use cases.

Cobalt dynamic variables and their templating can be broadly categorized as:

1. Workflow dynamic variables

Workflow dynamic variables are used to access data from previous nodes. Every node in a workflow returns some data in the form of a response object.

Data from a node can be accessed either directly from the response object using a template or by accessing as variables generated through test execution of nodes:

2. Instance metadata variables

An instance refers to a workflow execution instance. A workflow or an API proxy can access various instance data on the run-time such as,

  • Event name - {{instance_meta_data.event_name}}

  • Config id - {{instance_meta_data.config_id}}

  • Start time of the execution / Instance creation - {{instance_meta_data.instance_created_time}}

  • Instance id - {{instance_meta_data.instance_id}}

3. Linked account variables

Linked account variables are used to pass on Linked account-specific data throughout the Cobalt platform. The following are the variables that be used on the execution runtime:

  • UDFs - {{linked_account.udf.<UDF property>}}

  • Authorization data - {{linked_account.auth_credentials.<auth properties>}}