Appearance
Workflow Engine
About This Guide
This document explains how the Workflow Engine orchestrates computational models, runs systematic experiments, and supports decision-making through automated analysis pipelines. It focuses on how domain experts and operational teams can compose and test complex workflows conversationally.
Who this is for: Operational teams, domain experts, analysts running systematic experiments, and business stakeholders building decision-support capabilities.
What you'll learn:
- What the Workflow Engine does and the problems it solves
- How to compose workflows from independent analytical components
- How experimentation enables systematic testing and comparison
- How data flows between workflow steps automatically
- How workflows integrate with data services and OR
The Workflow Engine is the orchestration and experimentation layer of the OR. It provides capabilities for composing multi-step analytical workflows, running systematic experiments with different parametres, and building decision-support pipelines that combine multiple analytical models.
Context
Why This System Exists
Complex operational decisions often require combining multiple analytical capabilities — schedule generation, demand forecasting, capacity simulation, route optimisation — into coordinated workflows. These analytical components may exist independently but need to work together to support decision-making.
The challenge is coordination: routing outputs from one analysis as inputs to the next, managing execution order, and systematically testing how different assumptions affect outcomes. The Workflow Engine solves this by providing a system where independent analytical components can be composed into workflows and tested systematically.
The system is structured to keep domain experts and operators engaged in the analytical process. The Studies, Experiments, and Trials structure enables systematic comparison and validation before insights drive operational decisions. Once confidence is established through experimentation, workflows can operate with increasing autonomy over time.
What this enables in practice:
A rail operator evaluating disruption response strategies can chain a schedule generation model → passenger demand model → capacity simulation → delay impact calculator. The Workflow Engine handles data routing and execution order; the team focuses on interpreting results.
A mining operation testing different extraction schedules against route optimisation and cost models can define this as a single workflow, vary extraction parametres across experiments, and compare outcomes — without building a custom experiment runner.
A logistics team combining real-time traffic data with a route optimiser and schedule generator can run systematic experiments varying time windows, capacity constraints, or routing priorities to find the best operational configuration.
An autonomous AI agent monitoring an asset network identifies a high-priority fault alert, runs a predictive maintenance model to assess likely impact and timing, and automatically schedules a maintenance crew — surfacing the recommendation to the operator for confirmation before execution.
In each case, the value is the same: specialist models that would otherwise be siloed become a coordinated system. Teams move from model development to comparative analysis faster, and decisions are grounded in systematic experimentation rather than one-off runs.
Core Concepts and Principles
Analytical components work together seamlessly
Workflows combine independent analytical capabilities into coordinated processes. Each component maintains its independence while contributing to the overall analysis. OR handles coordination automatically, allowing domain experts to focus on what analysis needs to happen, not how components integrate.
Workflows are visual and auditable
Workflows are represented as visual diagrams showing analytical steps and their connections. This makes complex processes understandable without technical expertise. OR tracks workflow versions automatically, preserving historical configurations for reproducibility.
Data flows automatically between steps
OR handles data movement between workflow steps automatically. Outputs from one analysis become inputs to the next without manual intervention or integration code. This applies whether connecting analytical models, data transformations, or data service operations.
Systematic experimentation, not single runs
OR enables systematic testing through experiments: define a workflow, then run it with different parametre values to see how outcomes change. This supports workflow tuning — varying configuration across the entire analytical process to build confidence through repeated analysis. The Studies → Experiments → Trials structure makes this systematic and auditable.
Each experiment execution is stored as a distinct trial with complete configuration snapshots. This ensures reproducibility and provides an audit trail showing what question was being answered, what configuration was used, and what results were produced.
Role in Optimal Reality
The Workflow Engine occupies the workflow orchestration layer of Optimal Reality, coordinating the movement of data through computational pipelines.
The Workflow Engine is responsible for:
- Workflow definition and versioning — storing workflow graphs of computational tasks
- Experiment orchestration — binding parametre values to workflows and managing their execution
- Model registry — discovering and registering model services deployed to the cluster
- Data coordination — routing task outputs to subsequent task inputs automatically
The Workflow Engine interacts with:
- Data Layer — workflows connect to data services via data import and data export task types to read domain data and write results
- Deployment — model containers must be deployed before workflows can invoke them
How It Fits in OR
The Workflow Engine coordinates computational work across OR. Teams design workflows, the orchestration layer executes them, and results are surfaced to end users through operational dashboards.
Overview
The Workflow Engine enables teams to:
- Orchestrate Workflows — Chain data ingestion, models, operators, and outputs into end-to-end workflows
- Manage Models — Import pre-built model collections or create custom models via language-specific templates (Python, Julia, Go)
- Run Experiments — Organise execution into Studies, Experiments, and Trials for systematic parametre variation and comparison, enabling workflow tuning
- Connect Data Systems — Import from and export to data services via typed data connections
- Transform Data — Apply custom operators for data manipulation between workflow tasks
- Version Everything — Track workflow and model versions with rollback support
- Deploy Workflows — Schedule automatically, trigger on data events, or run on startup
Key Concepts
| Concept | Description |
|---|---|
| Study | A high-level container for related experiments sharing a common research objective |
| Experiment | A specific execution of a workflow with particular variable values and per-task overrides |
| Workflow | A versioned DAG/DCG of tasks defining the execution flow of computational components |
| WorkflowTask | An individual execution unit within a workflow, configured with a model config, inputs, and parametres |
| Model | A containerized service with defined Input, Params, and Output types |
| Model Collection | A service housing one or many models, deployed as a container |
| Operator | A custom function that transforms or processes data between tasks |
| Data Connection | A component that imports from or exports to data services |
| Function | Stored source code for operators and data connections |
Next Steps
Go deeper into the Workflow Engine:
- Architecture — How the Workflow Engine orchestrates workflows across components
- Workflow Execution Manager — How workflows are executed and coordinated
- Data Flow & Transformations — How data moves between models automatically
- Modelling Library — Explore pre-built models for simulation, optimisation, AI, and integration
- Data Schema — Study, Experiment, Trial entity hierarchy
Connect to the rest of OR:
- Data Layer — the Workflow Engine's own backend uses the Data Layer; data import and data export task types connect to data services
- Deployment — model containers must be deployed before workflows can invoke them
