简体   繁体   English

如何将参数传递到Mule ESB流xml中?

[英]How to pass parameters into Mule ESB flow xml?

Its pretty new this Mule ESB to me. 对我来说,这是Mule ESB相当新的东西。 I am trying to pass parameter from the flow xml itself. 我正在尝试从流xml本身传递参数。 Once flow started, then doTransform() method invoked and the logic inside it will be executed accordingly based on the parameter passed. 流开始后,将调用doTransform()方法,并将根据传递的参数相应地执行其内部逻辑。

My concern is " How to pass parameter? and How can I access it from that method? " Is there any other way please do suggest. 我关心的是“ 如何传递参数?如何从该方法访问它? ”是否还有其他建议。

Thanks in Advance 提前致谢

Using method entry point resolver you can call a method and pass parameter. 使用method entry point resolver可以调用方法并传递参数。

Share your config for further help. 共享您的配置以获得更多帮助。

 message.getProperty("yourVariableName", PropertyScope.SESSION);

您可以在此处使用各种范围,例如出站,发票,入站,会议等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM