v2.1.5+ Viewing the run context of a task

In the Orchestration Monitor, you can inspect the full JSON context recorded during a specific task run to troubleshoot data flow issues and validate runtime values.

About this task

Each task run records its full JSON context at run time. The context captures the complete state of the task as it ran, including return codes, variables, workflow metadata, and the output of predecessor tasks. You can inspect this context directly from the Orchestration Monitor without re-running the workflow.

Access to the task context is restricted to users authorized to view the corresponding plan item. Plan item authorization covers the complete run-time snapshot: if you can view a plan item, you can see all variable values resolved during that run, including values sourced from variable tables that you do not have direct access to.

Procedure

  1. Open the Orchestration Monitor.
  2. Navigate to the Tasks view and locate the run instance you want to inspect.
  3. Open the task details panel and click View JSON Context.
    The context viewer opens and displays the full JSON context recorded for that run.
  4. Use the viewer controls to inspect the context data:
    Copy to clipboard
    Copy the full context JSON to paste it directly into the JSONata editor for expression testing.

Results

The context viewer displays the JSON object as it existed at the time of the selected run. The top-level properties of the context are:
  • RC: The return code of the task.
  • var: The key-value pairs representing workflow variables.
  • js: The workflow metadata, matching the JobStreamInPlanV2 schema.
  • jobs: The task-level data, including output properties from predecessor tasks, matching the JobInPlanV2 schema.

For the full schema reference, see Task context structure.

What to do next

To test JSONata expressions against this context, open the JSONata editor from any JSONata-capable field in the Graphical Designer and load the context from a previous run. You can also copy the context JSON from this viewer and paste it manually into the editor.