--- url: "http://www.enterpriseintegrationpatterns.com/ProcessManager.html" titulek: "Process Manager - Enterprise Integration Patterns" h1: "" popis: "How do we route a message through multiple processing steps when the required steps may not be known at design-time and may not be sequential?" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 15:34:23" znaku: 7287 slov: 767 kodovani: "utf-8" sha256: "ac6e6180c5ee20833a84ff28fc856851828832cdbefd1fc3db2807007d4cbbd1" --- | | Process Manager[Messaging Patterns](index.html) » [Message Routing](MessageRoutingIntro.html) | [Contents](toc.html)[⇐ Prev](RoutingTable.html)[Next ⇒](MessageBroker.html) | | --- | --- | --- | The [*Routing Slip*](RoutingTable.html) demonstrates how a message can be routed through a dynamic series of processing steps. The solution of the [*Routing Slip*](RoutingTable.html) is based on two key assumptions: the sequence of processing steps has to be determined up-front and the sequence is linear. In many cases, these assumptions may not be fulfilled. For example, routing decisions might have to be made based on intermediate results. Or, the processing steps may not be sequential, but multiple steps might be executed in parallel. How do we route a message through multiple processing steps when the required steps may not be known at design-time and may not be sequential? Use a central processing unit, a *Process Manager*, to maintain the state of the sequence and determine the next processing step based on intermediate results. First of all, let me clarify that the design and configuration of a *Process Manager* is a pretty extensive topic. We could probably fill a whole book (Volume 2, maybe?) with patterns related to the design of workflow or business process management. Therefore, this pattern is intended primarily to "round off" the topic of routing patterns and to provide a pointer into the direction of workflow and process modeling. By no means is it a comprehensive treatment of business process design. Using a *Process Manager* results in a so-called hub-and-spoke pattern of message flow (see diagram). An incoming message initializes the *Process Manager*. We call this message the *trigger message*. Based on the rules inside the *Process Manager*, it sends a message (1) to the first processing step, implemented by Processing Unit A. After unit A completes its task it sends a reply message back to the *Process Manager*. Next, the *Process Manager* determines the next step to be executed and sends message (2) to the next processing unit. As a result, all message traffic runs through this central 'hub', hence the term hub-and-spoke. The downside of this central control element is the danger of turning the *Process Manager* into a performance bottleneck. The versatility of a *Process Manager* is at the same time its biggest strength and weakness. A *Process Manager* can execute any sequence of steps, sequential or in parallel. Therefore, almost any integration problem can be solved with a *Process Manager*. Likewise, most of the patterns introduced in this chapter could be implemented using a *Process Manager*. In fact, many EAI vendors make you believe that every integration problem is a process problem. We think that using a *Process Manager* for every situation may be overkill. It can distract from the core design issue and also cause significant performance overhead. ... Read the entire pattern in the book [Enterprise Integration Patterns](/books1.html) ## Example: Serverless Loan Broker with AWS Step Functions[NEW](/ramblings/eip1_examples_updated.html) The [implementation of the Loan Broker example with AWS serverless services](/ramblings/loanbroker_stepfunctions.html) employs [AWS Step Functions](https://aws.amazon.com/step-functions) as *Process Manager*. Step Functions orchestrates a series of tasks and maintains state across tasks in a JSON document, which covers the characteristics of a *Process Manager* quote well. ## Example: Serverless Loan Broker with GCP Workflows[NEW](/ramblings/eip1_examples_updated.html) The [implementation of the Loan Broker example with GCP](/ramblings/loanbroker_gcp_workflows.html) employs [GCP Workflows](https://cloud.google.com/blog/products/application-development/get-to-know-google-cloud-workflows) as *Process Manager*. **Related patterns:** [*Aggregator*](Aggregator.html), [*Asynchronous Implementation with MSMQ*](ComposedMessagingMSMQ.html), [*Asynchronous Implementation with TIBCO ActiveEnterprise*](ComposedMessagingTIBCO.html), [*Content-Based Router*](ContentBasedRouter.html), [*Correlation Identifier*](CorrelationIdentifier.html), [*Emerging Standards and Futures in Enterprise Integration*](Future.html), [*Message Channel*](MessageChannel.html), [*Message History*](MessageHistory.html), [*Message Store*](MessageStore.html), [*Message Translator*](MessageTranslator.html), [*Pipes and Filters*](PipesAndFilters.html), [*Publish-Subscribe Channel*](PublishSubscribeChannel.html), [*Routing Slip*](RoutingTable.html), [*Claim Check*](StoreInLibrary.html) --- ## Integration Pattern Language [Message Construct.](MessageConstructionIntro.html) [Message](Message.html) [Command Message](CommandMessage.html) [Document Message](DocumentMessage.html) [Event Message](EventMessage.html) [Request-Reply](RequestReply.html) [Return Address](ReturnAddress.html) [Correlation Identifier](CorrelationIdentifier.html) [Message Sequence](MessageSequence.html) [Message Expiration](MessageExpiration.html) [Format Indicator](FormatIndicator.html) [Message Routing](MessageRoutingIntro.html) [Pipes-and-Filters](PipesAndFilters.html) [Message Router](MessageRouter.html) [Content-based Router](ContentBasedRouter.html) [Message Filter](Filter.html) [Dynamic Router](DynamicRouter.html) [Recipient List](RecipientList.html) [Splitter](Sequencer.html) [Aggregator](Aggregator.html) [Resequencer](Resequencer.html) [Composed Msg. Processor](DistributionAggregate.html) [Scatter-Gather](BroadcastAggregate.html) [Routing Slip](RoutingTable.html) [Process Manager](ProcessManager.html) [Message Broker](MessageBroker.html) [Message Transformation](MessageTransformationIntro.html) [Message Translator](MessageTranslator.html) [Envelope Wrapper](EnvelopeWrapper.html) [Content Enricher](DataEnricher.html) [Content Filter](ContentFilter.html) [Claim Check](StoreInLibrary.html) [Normalizer](Normalizer.html) [Canonical Data Model](CanonicalDataModel.html) [Messaging Endpoints](MessagingEndpointsIntro.html) [Message Endpoint](MessageEndpoint.html) [Messaging Gateway](MessagingGateway.html) [Messaging Mapper](MessagingMapper.html) [Transactional Client](TransactionalClient.html) [Polling Consumer](PollingConsumer.html) [Event-driven Consumer](EventDrivenConsumer.html) [Competing Consumers](CompetingConsumers.html) [Message Dispatcher](MessageDispatcher.html) [Selective Consumer](MessageSelector.html) [Durable Subscriber](DurableSubscription.html) [Idempotent Receiver](IdempotentReceiver.html) [Service Activator](MessagingAdapter.html) [Messaging Channels](MessagingChannelsIntro.html) [Message Channel](MessageChannel.html) [Point-to-Point Channel](PointToPointChannel.html) [Publish-Subscr. Channel](PublishSubscribeChannel.html) [Datatype Channel](DatatypeChannel.html) [Invalid Message Channel](InvalidMessageChannel.html) [Dead Letter Channel](DeadLetterChannel.html) [Guaranteed Delivery](GuaranteedMessaging.html) [Channel Adapter](ChannelAdapter.html) [Messaging Bridge](MessagingBridge.html) [Message Bus](MessageBus.html) [Systems Mgmt.](SystemManagementIntro.html) [Control Bus](ControlBus.html) [Detour](Detour.html) [Wire Tap](WireTap.html) [Message History](MessageHistory.html) [Message Store](MessageStore.html) [Smart Proxy](SmartProxy.html) [Test Message](TestMessage.html) [Channel Purger](ChannelPurger.html)