例如,信息丰富了她的文档使用了一个术语“变量”
<flow name="orderProcessingFlow">
<inbound-endpoint ref="orderEndpoint"/>
<enricher target="#[variable:state]">
<outbound-endpoint ref="stateLookup"/>
</enricher>
<outbound-endpoint ref="orderStep2"/>
</flow>我没有找到关于那个关键字的任何文档,我可以知道它基本上是添加了一个流变量,但是它还有什么吗?(如果没有关键字变量,就会得到异常)
另外,文档中没有一个例子提到丰富“消息头”--我的假设是,消息头暗示出站属性是正确的吗?
如果相同的流要添加一个出站属性,它会是什么样子(这是基于我的测试)
<flow name="orderProcessingFlow">
<inbound-endpoint ref="orderEndpoint"/>
<enricher target="#[message.outboundProperties.var]">
<outbound-endpoint ref="stateLookup"/>
</enricher>
<outbound-endpoint ref="orderStep2"/>
</flow>发布于 2015-05-08 03:26:33
#[variable:state]是旧的表达式语法,从3.3开始就被MEL取代了。我认为MEL的等价物是#[flowVars.state]
同样,消息“头”也是过时的行话。您的消息属性具有不同的作用域(入站、出站、流/调用和会话)。
是的,您可以在流中设置的唯一属性是出站属性(入站属性由端点设置)。
https://stackoverflow.com/questions/30114506
复制相似问题