Saturday, 12 October 2013

Process.Plugin interface for cloud flow designer

Process.Plugin is a built-in interface that allows you to process data within your organization and pass it to a specified flow. The interface exposesApex as a service, which accepts input values and returns output back to the flow.
When you define an Apex class that implements the Process.Plugin interface in your organization, the Cloud Flow Designer displays the Apex class in the Palette.
Process.Plugin has the following top level classes:
·         Process.PluginRequest
·         Process.PluginResult
The Process.PluginRequest class passes input parameters from the class that implements the interface to the flow.
The Process.PluginResult class returns output parameters from the class that implements the interface to the flow.
The Process.PluginRequest class passes input parameters from a flow to the class that implements the interface.
When you’re writing Apex unit tests, you must instantiate a class and pass it in the interface invoke method. You must also create a map and use it in the constructor to pass in the parameters needed by the system.

The Process.PluginDescribeResult class is used to determine the input parameters and output parameters needed by theProcess.PluginResult plug-in.



No comments:

Post a Comment

Best Practices for Building Prompt Templates

 Hi, The following best practices should be considered when building prompt templates: Make sure that your prompt templates are concise and ...