简体   繁体   中英

Retrieve Java Component name in Mulesoft flow

Is there way in Java to get its own Java Component name in the Mulesoft flow?

In other words - how can I get "JavaComponentName" inside its Java code?

在此处输入图片说明

I think the method that you are looking for is :

LocationExecutionContextProvider.resolveProcessorRepresentation(String appId, processorPath, element)

According to the java docs:

 /**
     * Generates a representation of a flow element to be logged in a standard way.
     * 
     * @param appId
     * @param processorPath
     * @param element
     * @return
     */
    public static String resolveProcessorRepresentation(String appId, String processorPath, Object element)

Give it a try and let us know if is working! cheers!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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