Passing Data to a Flow Using the Process.Plugin Interface

Process.Pluginis a built-in interface that allows you to process data within your organization and pass it to a specified flow. The interface exposes Apex 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:

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.

For more information, see Using the Process.PluginRequest Class.

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

© Copyright 2000–2014 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.