How to get caller flow name in private flow in Mule -
i've private flow shared lot of public flows using flow-ref
. i'm looking caller flow name in private flow, using mel
, using mule 3.3.0. possible?
mule doesn't add property event when invokes private flow via flow-ref
options are:
- use
<set-variable>
set variable flow name before calling private flow , read variable#[flowvars.yourvariablename]
. - use inbound endpoint of calling flow way tell who's calling. can either inbound endpoint url
#[message.inboundproperties.mule_endpoint]
or name#[message.inboundproperties.mule_originating_endpoint]
. - create custom messageprocessor implements flowconstructaware: way you'll flow name , able automatically set invocation variable on
muleevent
's message. usecustom-processor
element in parent flows, beforeflow-ref
.
Comments
Post a Comment