You can use the following java action from the community commons in a microflow:getTypeAsString. This will pass you back the name of any entity you pass it.
This can be downloaded from the appstore: https://appstore.mendix.com/link/app/Community%20Commons%20Function%20Library
If you want to create your own java action to do this the code is:
instance.getType();