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
- Open the Orchestration Monitor.
- Navigate to the Tasks view and locate the run instance you want to inspect.
-
Open the task details
panel and click View JSON Context.
The context viewer opens and displays the full JSON context recorded for that run.
-
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
RC: The return code of the task.var: The key-value pairs representing workflow variables.js: The workflow metadata, matching theJobStreamInPlanV2schema.jobs: The task-level data, including output properties from predecessor tasks, matching theJobInPlanV2schema.
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.