Orkes Operators: Branching and Conditionals
Blog post from Orkes
Orkes Conductor is a platform that enhances workflow automation by providing declarative operators to enable decision-making within workflows without embedding logic directly into services. It introduces four main operators: Switch for conditional branching, Dynamic for task generation based on input, Set Variable for updating workflow state, and Terminate for ending workflows early when necessary. These operators allow workflows to adapt dynamically to input, making them flexible and maintainable, exemplified through scenarios like selecting shipping methods or calculating order prices. The Switch task supports conditional routing similar to programming constructs, while Dynamic tasks determine which tasks to execute at runtime, facilitating real-time decision-making. Set Variable tasks track and manage workflow state by storing values that persist throughout the execution, and Terminate tasks allow workflows to conclude gracefully under specific conditions, such as incorrect input. This orchestration framework ensures workflows remain clean, visible, and adaptable, accommodating real-world complexities without complicated logic, and is available in both an enterprise-grade version and a free Developer Edition.