Connecting Handlers with Channels
Learn how to connect message handlers using channels to build workflows
Understanding the Flow: From Handler to Handler
Step 1: Understanding Single Handlers
#[CommandHandler('place.order')]
public function place(PlaceOrder $command): void
{
// Place the order logic here
}
Step 2: Connecting Handlers Together

Making Handlers Internal (Private to Workflow)
Adding Asynchronous Processing

Adding Delays and Timeouts

Controlling Workflow Flow
Stopping the Workflow
Enriching Messages in Workflows
Option 1: Transform the Payload
Option 2: Add Data to Message Headers
Testing Your Workflows with Ecotone Lite
Setting Up Tests
Testing Handler Chains
Testing Asynchronous Workflows
Summary: What You've Learned
Key Concepts
Last updated
Was this helpful?