InvocableMethod annotation is used to identify methods in apex class that can be called from flows. It is a helpful method to provide a seamless admin friendly way to call the apex code using simple flows. Invoking apex from flow is a significant option for providing design patterns that can solve many business problems while also providing great user experience.
Developer documentation on the @InvocableVariable annotation:
[ Ссылка ]
Ещё видео!