Prasad
Prasad

Reputation: 31

How can i find the mule configuration file name in the flow

I want to print the mule configuration file name, in the logger in the flow, how can I get it?

Suppose the configuration file name in test.xml, inside that a flow is having logger, which prints test.xml, how can I get this?

flow name="filenameFlow"> http:listener config-ref="HTTP_Listener_Configuration" path="/Hello" doc:name="HTTP"/> logger message="#[app.name.toString()]" level="INFO" doc:name="Logger"/> /flow>

Upvotes: -1

Views: 320

Answers (1)

Ujjawal Kant
Ujjawal Kant

Reputation: 21

TO get the Mule configuration file name which contains your flow, use

[app.workDir] to extract the M-Config name using substring.

You can also get the running flow name using #[flow.name] in the logger

Upvotes: 0

Related Questions