githubEdit

Context Viewer

circle-info

For more on The Context, take our Jinja coursework in Cluck Universityarrow-up-right, or read our docs here.

What is the Context Viewer?

Prior to the release of our Context Viewer, you'd have to remember all the variables, structures and data aliases you create in The Context of your workflows on your own. Now, by default, the Context Viewer will recall these for you in any task that has an output schema, without having to run the workflow first.

circle-info

An output schema is a structured display of what is returned by the API of the integration called by your task. It's what we expect back from the API call for that task. Some of Rewst's older tasks don't have output schemas.

Remember, actions are dragged from the left side action menu of your Workflow Builder, and once placed on the Workflow Builder canvas become tasks.

Click next to any field in your task's right side menu to open the Monaco Editor. Now, the Context Viewer will automatically appear to the left of the Monaco Editor whenever your task has an output schema.

The Context Viewer has five tabs:

  • Current - This tab shows the output schema for the task you are currently editing, expressed using result. syntax.

  • Tasks - This tab lists out all output variables from the tasks that execute before the current task.

  • Published - This tab lists out all published data alias values from earlier transitions, as well as workflow inputs.

  • Workflow - This contains your workflow inputs. When new inputs are added, they immediately become available in this tab for use throughout the workflow.

  • Organization - This tab lists out all available organization variables.

Click on any of the items listed in these tabs to immediately add them to the Monaco Editor. Once added, you can edit the code as needed.

The Context is location-aware - inside a task with output schema, it shows relevant result data with the appropriate syntax - result.domain_aliases vs tasks.domain_aliases - depending on where in the workflow you're editing.

Current limitations to the Context Viewer

  • Currently, not all tasks have output schemas. Future improvements will allow pulling in workflow execution information to show what happened at specific points in previous workflow runs, providing predictive capabilities based on past executions.

  • The Context Viewer won't show completed workflow variables.

  • Trigger information may not be set up under its own category.

  • If a task doesn't have an output schema, the Context Viewer won't appear to the left of the Monaco Editor when you open it in your task's right side menu.

Last updated

Was this helpful?