+ Start a Discussion
zubair shareef mohammadzubair shareef mohammad 

Flows and Plugins

I am little bit confused in Flows and plugins and usage in apex 
So any one can give clear explanation in that
thank you
NagendraNagendra (Salesforce Developers) 
Hi Zubair,

Flow: A flow is an application that can execute logic, interact with the Salesforce database, call Apex classes, and collect data from users

Plugin: Plugin is a built-in interface that allows you to pass data between your organization and a specified flow.

Usage of flow in apex:
  • https://help.salesforce.com/apex/HTViewHelpDoc?id=vpm_designer_elements_apex.htm&language=en_US
  • https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_distribute_system_apex.htm
Usage of Plugin in apex:
  • https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_plugin.htm
  • https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_plugin_using.htm
Note:Flow is an app which executes logic directly with salesforce database,in order to make a flow interact with salesforce database we make use of process.plugin interface.

Kindly mark this as best answer if it helps.

Best Regards,
The above link not working 
please check onces and update new link