Newer Version Available

This content describes an older version of this product. View Latest

Implementing the Process.Plugin Interface

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

We recommend using the @InvocableMethod annotation instead of the Process.Plugin interface.

  • The interface doesn’t support Blob, Collection, sObject, and Time data types, and it doesn’t support bulk operations. Once you implement the interface on a class, the class can be referenced only from flows.
  • The annotation supports all data types and bulk operations. Once you implement the annotation on a class, the class can be referenced from flows, processes, and the Custom Invocable Actions REST API endpoint.

Tip

The class that implements the Process.Plugin interface must call these methods.

Name Arguments Return Type Description
describe Process.PluginDescribeResult Returns a Process.PluginDescribeResult object that describes this method call.
invoke Process.PluginRequest Process.PluginResult Primary method that the system invokes when the class that implements the interface is instantiated.

Example Implementation

Test Class

The following is a test class for the above class.