Atlassian Marketplace - wybrane rozwiązania o wartości biznesowej
Muleflowarchitecturepart2
Transcript of Muleflowarchitecturepart2
![Page 1: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/1.jpg)
Mule Flow Architecture Part 2
![Page 2: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/2.jpg)
Message Processing Blocks
• Composite source scope allows you to embed into a single message source two or more Anypoint Connectors
• Whenever one of these listeners receives an incoming message, it triggers a flow instance and starts the message through the message processing sequence
![Page 3: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/3.jpg)
Message Processing Blocks
• Building blocks known as scopes provide multiple ways to combine message processors:– Make your XML code much easier to read– Implement parallel processing– Create reusable sequences of building blocks
![Page 4: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/4.jpg)
Exchange Patterns
![Page 5: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/5.jpg)
Processing Strategies
![Page 6: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/6.jpg)
Exception Strategies• Determines how Mule responds if and when an error occurs
during the course of message processing• Configure a custom exception strategy to respond in a variety of ways to a
variety of conditions• Studio provides four pre-packaged error handling strategies to handle
exceptions thrown at various points during the message processing sequence
![Page 7: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/7.jpg)
Flow Architecture
![Page 8: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/8.jpg)
Flow Architecture
• You could embed the filter and the transformers inside the inbound endpoint:
![Page 9: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/9.jpg)
Flow Architecture
• You could embed the filter and the transformers inside the inbound endpoint:
![Page 10: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/10.jpg)
Flow Configuration
• A typical flow might utilize the following sequence:– A message source consisting of one or more inbound
endpoints or other streaming connectors triggers the flow each time it receives a message
– A filter may identify invalid messages and decline to pass them to the rest of the flow for processing
– A transformer can convert the incoming message into a data format consumable by the other message processors in the flow
![Page 11: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/11.jpg)
Flow Configuration
• Throughout the flow, you can do the following:– Send messages to queues– Specify threading models– Call various other flows
![Page 12: Muleflowarchitecturepart2](https://reader035.fdocuments.pl/reader035/viewer/2022070512/589a96781a28abae648b631f/html5/thumbnails/12.jpg)
Question and answer