- if you want to log the Microflow name that calls java action, you must do it in Microflow. If you want to make it generic, then you can pass the Microflow name as String to the java action and log it. I dont think you can have auto reference to the microflow that calls java action within the java action.
- If you want to log the events from Java action then do the following
ILogNode logger = Core.getLogger("<LogNodeName>");
- You can also log the messages at various level by using different methods like debug, trace etc.
Kindly refer the following document, which will help you on logging info