Hi,
You can create a java action in your application and can call the same as Call Java Action activity in microflow.
Please refer this docs:
https://docs.mendix.com/howto/logic-business-rules/extending-your-application-with-custom-java
https://docs.mendix.com/refguide/java-actions
Hope this helps!