Hello Morimoto,
Have you tried out the suggestions in these posts:
https://community.mendix.com/link/space/java-actions/questions/91216
https://community.mendix.com/link/space/studio-pro/questions/90433
Hope this helps,
Good luck
Hi Morimoto,
The Emixa commons module from the marketplace has a java action called like that: GetCurrentMicroflow
This will return the current microflow name or depending on the parameter an above microflow.
You can use this action in combination with a subflow to create what you want or use it as an example to create what you want. Personally I would opt for the subflow approach it's easy to create and you can add it to your toolkit.