Orkes logo image
Product
Platform
Orkes Platform thumbnail
Orkes Platform
Orkes Agentic Workflows
Orkes Conductor Vs Conductor OSS thumbnail
Orkes vs. Conductor OSS
Orkes Cloud
How Orkes Powers Boat Thumbnail
How Orkes Powers BOAT
Try enterprise Orkes Cloud for free
Enjoy a free 14-day trial with all enterprise features
Start for free
Capabilities
Microservices Workflow Orchestration icon
Microservices Workflow Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Realtime API Orchestration icon
Realtime API Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Event Driven Architecture icon
Event Driven Architecture
Create durable workflows that promote modularity, flexibility, and responsiveness.
Human Workflow Orchestration icon
Human Workflow Orchestration
Seamlessly insert humans in the loop of complex workflows.
Process orchestration icon
Process Orchestration
Visualize end-to-end business processes, connect people, processes and systems, and monitor performance to resolve issues in real-time
Use Cases
By Industry
Financial Services icon
Financial Services
Secure and comprehensive workflow orchestration for financial services
Media and Entertainment icon
Media and Entertainment
Enterprise grade workflow orchestration for your media pipelines
Telecommunications icon
Telecommunications
Future proof your workflow management with workflow orchestration
Healthcare icon
Healthcare
Revolutionize and expedite patient care with workflow orchestration for healthcare
Shipping and logistics icon
Shipping and Logistics
Reinforce your inventory management with durable execution and long running workflows
Software icon
Software
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean leo mauris, laoreet interdum sodales a, mollis nec enim.
Docs
Developers
Learn
Blog
Explore our blog for insights into the latest trends in workflow orchestration, real-world use cases, and updates on how our solutions are transforming industries.
Read blogs
Check out our latest blog:
Conductor CLI Guide: Register, Run, Retry, and Recover Durable Workflows Without Leaving Your Terminal đź’»
Customers
Discover how leading companies are using Orkes to accelerate development, streamline operations, and achieve remarkable results.
Read case studies
Our latest case study:
Twilio Case Study Thumbnail
Orkes Academy New!
Master workflow orchestration with hands-on labs, structured learning paths, and certification. Build production-ready workflows from fundamentals to Agentic AI.
Explore courses
Featured course:
Orkes Academy Thumbnail
Events icon
Events
Videos icons
Videos
In the news icon
In the News
Whitepapers icon
Whitepapers
About us icon
About Us
Pricing
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Orkes logo image

Company

Platform
Careers
HIRING!
Partners
About Us
Legal Hub
Security

Product

Cloud
Platform
Support

Community

Docs
Blogs
Events

Use Cases

Microservices Workflow Orchestration
Realtime API Orchestration
Event Driven Architecture
Agentic Workflows
Human Workflow Orchestration
Process Orchestration

Compare

Orkes vs Camunda
Orkes vs BPMN
Orkes vs LangChain
Orkes vs Temporal
Twitter or X Socials linkLinkedIn Socials linkYouTube Socials linkSlack Socials linkGithub Socials linkFacebook iconInstagram iconTik Tok icon
© 2026 Orkes. All Rights Reserved.
Back to Blogs

Table of Contents

Share on:Share on LinkedInShare on FacebookShare on Twitter
Worker Code Illustration

Get Started for Free with Dev Edition

Signup
Back to Blogs
PRODUCT

Control the Flow: Building Dynamic Workflows with Orkes Operators

Karl Goeltner
Karl Goeltner
Software Engineer
Last updated: April 28, 2025
April 28, 2025
5 min read

Related Blogs

Fail Fast, Recover Smart: Timeouts, Retries, and Recovery in Orkes Conductor

May 12, 2025

Fail Fast, Recover Smart: Timeouts, Retries, and Recovery in Orkes Conductor

Task-Level Resilience in Orkes Conductor: Timeouts and Retries in Action

May 12, 2025

Task-Level Resilience in Orkes Conductor: Timeouts and Retries in Action

Workflow-Level Resilience in Orkes Conductor: Timeouts and Failure Workflows

May 12, 2025

Workflow-Level Resilience in Orkes Conductor: Timeouts and Failure Workflows

Ready to Build Something Amazing?

Join thousands of developers building the future with Orkes.

Start for free

Orchestration is a powerful design framework for coordinating distributed services and systems into automated processes. Using a workflow engine, such as Orkes Conductor, provides a myriad of benefits like durable executions, state tracking, and developer productivity.

A key part of this orchestration model is operators, which are control flow primitives that resemble programming constructs. By using operators, developers can model dynamic, intelligent workflows without writing imperative control logic, making it easier to scale, maintain, and evolve complex systems.

What are operators?

In Conductor, operators define the control flow, structure, and decision-making within a workflow. Operators are one of the three core task types used in workflows, alongside system tasks and worker tasks. While system and worker tasks focus on performing actions (like sending HTTP requests or processing data), operator tasks define the control flow.

Diagram of the three task types in Conductor: System Tasks, Operators, and Worker Tasks.

Operators act as declarative control structures, similar to constructs in traditional programming languages. For example, a Switch operator mimics a switch-case statement, a Fork allows for parallel task execution, and a Do While enables looping logic. These constructs make it possible to express complex workflow logic (branching, looping, and conditional execution) all without writing procedural code.

Operators are essential for orchestrating agentic workflows, where conditional or parallel logic provides a mapped space for the agent to act autonomously within bounds. Similarly, using operators, human-in-the-loop flows can be dynamically controlled based on the manual input received mid-flow.

Like system tasks, operator tasks are fully managed by Conductor and do not require any external workers to run. They are evaluated and executed internally by the engine, making them lightweight and efficient building blocks for composing complex workflows.

Why use operators?

Using operators in your workflows offers a range of benefits, especially when compared to managing control flow directly in code:

  • Declarative logic: Operators allow you to express branching, looping, and parallelism in a clean, declarative way. No need to write imperative control logic or orchestration code.
  • Separation of concerns: Business logic stays inside your services, while orchestration logic lives inside your workflow. This separation makes it easier to test, reason about, and maintain your applications.
  • Dynamic execution paths: You can define workflows that respond to real-time data and conditions, dynamically choosing tasks or branches to execute.
  • Fully managed by Conductor: Operators require no external workers or custom handlers. They’re executed entirely within the Conductor engine, reducing complexity and operational overhead.

By leveraging operators, you can design robust, readable, and adaptable workflows without getting bogged down by control-flow code scattered across services.

The power of declarative logic

Declarative logic is all about describing what should happen, not how to make it happen. In traditional code, developers must spell out the exact sequence of steps and control flow — managing state, writing loops, handling conditionals, and coordinating service calls. This imperative approach can quickly become brittle and hard to maintain as workflows grow in complexity.

By contrast, declarative logic lets you define the intent of the workflow and offload the execution details to the orchestration engine. This not only simplifies development but also makes workflows easier to read, reason about, and debug.

Operators in Orkes Conductor are a perfect example of this approach. They serve as control flow declarations: you define that a workflow should loop, branch, or fork — and Conductor takes care of executing that logic under the hood. Want to repeat a task until a condition is met? Just add a Do While with the right condition. Need to split work across multiple paths and rejoin later? Use Fork and Join. There’s no need to write a single line of plumbing code.

This declarative style brings huge benefits:

  • Maintainability: Simply update the workflow definition to change the workflow logic. No need to rewrite service code.
  • Readability: Declarative workflows are self-documenting. You can inspect them in the UI or JSON and instantly understand the flow.
  • Modularity: You can compose and reuse smaller workflows, using operators like Sub Workflow or Start Workflow as high-level building blocks.

Declarative vs imperative logic

In this example, we demonstrate how both imperative and declarative workflows handle iterating over a list of tasks and making HTTP requests for each. The imperative workflow explicitly defines the loop, including custom error handling for each HTTP request, while the declarative workflow uses Orkes Conductor's built-in Do While operator to manage iteration, with automatic error handling provided by the engine. This showcases the difference in complexity and control between the two approaches.

Comparision diagram of an example workflow using imperative logic vs using declarative logic.

Imperative logic vs declarative logic.

Declarative orchestration is especially valuable when building agentic workflows, human-in-the-loop workflows, event-driven systems, or other dynamic execution paths. Operators let you adapt to changing inputs or user actions without embedding decision logic inside services.

Overview of Conductor’s operators

Diagram of all Conductor operators: Switch, Dynamic, Wait, Set Variable, Do While, Human, Sub Workflow, Terminate Workflow, Terminate, Fork, Join, Dynamic Fork, Start Workflow, Get Workflow.

Build workflows declaratively with operators.

With over a dozen operators and extensive SDK support, you can quickly build out and deploy powerful workflows. Let’s explore example workflows that make use of these most commonly used tasks:

OperatorDescription
SwitchBranches the workflow based on conditions, similar to a switch-case construct. Learn more: Branching and Conditionals
DynamicDynamically evaluates conditions at runtime to determine what to do. Learn more: Branching and Conditionals
Set VariableSets variables within the workflow, allowing for dynamic control during execution. Learn more: Branching and Conditionals
TerminateEnds the workflow execution early, often used for terminating workflows under conditions. Learn more: [Branching and Conditionals]​​(https://orkes.io/blog/operators-branching-and-conditionals)
Do WhileLoops through tasks until a condition is no longer true, used for repeated actions. Learn more: Loops, Waits, and Human-in-the-Loop
WaitPauses execution for a set time or until a condition is met. Learn more: Loops, Waits, and Human-in-the-Loop
HumanPauses execution until manual input is received, useful for human-in-the-loop scenarios. Learn more: Loops, Waits, and Human-in-the-Loop
ForkExecutes multiple tasks in parallel, enabling concurrent processing. Learn more: Parallelism and Reusability
JoinMerges the results from parallel tasks, allowing the workflow to proceed together. Learn more: Parallelism and Reusability
Dynamic ForkDynamically creates parallel tasks at runtime based on conditions or data. Learn more: Parallelism and Reusability
Sub WorkflowTriggers another workflow within the current workflow for modularity and reusability. Learn more: Parallelism and Reusability
Start WorkflowStarts another workflow asynchronously in parallel with the current workflow. Learn more: Parallelism and Reusability

Wrap up

Orkes Conductor simplifies workflow orchestration by using declarative operators to manage complex logic. With tasks like Switch, Do While, and Fork/Join, you can build flexible, scalable workflows without writing imperative code. This approach accelerates development, reduces maintenance overhead, and enables collaboration across teams. Whether through the visual diagram editor or Conductor SDKs in Java, Python, or other languages, Conductor empowers developers to easily design, manage, and scale workflows.

Mastering control flow with Conductor

With operators, you design the flow, and Conductor handles the execution logic, freeing you to focus on building the features that matter.

Check out how to use Conductor’s operators with these articles:

  • ​​Orkes Operators: Branching and Conditionals
  • Orkes Operators: Loops, Waits, and Human-in-the-Loop
  • Orkes Operators: Parallelism and Reusability

Orkes Conductor is an enterprise-grade orchestration platform for process automation, API and microservices orchestration, agentic workflows, and more. Check out the full set of features, or try it yourself using our free Developer Edition.