且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在m子流中循环遍历对象库的键/值

更新时间:2023-01-16 20:58:43

我会争辩说,您正在尝试将基本的过程代码插入到管道和过滤器模式将流处理器用于用例,这些用例自然会调用管道和过滤器,并将过程逻辑封装在组件内,然后将组件包括在流中.避免使用Mule构造编写过程逻辑.我知道像大多数设计问题一样,都有一些灰色区域,但是在大多数情况下,可以达成***实践.

I would argue that you are trying to shoe horn essentially procedural code into a pipes and filters pattern use flow processors for use cases which naturally call out for pipes and filters and encapsulate procedural logic within components and then include the component within the flow. Avoid writing procedural logic using Mule constructs. I know like most design issues there is some grey area but in most cases a best practice can be agreed upon.

从纯粹的实现角度来看,这确实是有效的.

From a purely implementation view point this does look valid.