Process Automation & Logic: Declarative Features 2 Flashcards
Using Declarative Functionality and Apex together to Automate (39 cards)
<blank> can be invoked from Process Builder to add custom functionality to a process.
</blank>
Apex code
An Apex action can be created and added to the process to invoke Apex code. True or False?
True
<blank> with appropriate annotation can be used to invoke the methods in an Apex class.
</blank>
Invocable methods
An Apex action is defined with an <blank> and <blank> for adding Apex code functionality to a process.</blank></blank>
Action Name, Apex Class
The <blank> annotation is used in Apex classes to identify methods that can be run as invocable actions. Invocable methods must be static and either public or global.</blank>
@InvocableMethod
What is a limitation to having an invocable method in an apex class?
Only a single method in an Apex class can have the @InvocableMethod annotation, and other annotations cannot be used with it.
What is a limitation of an invocable method itself?
An invocable method can have at most one input parameter, and the @InvocableVariable annotation can be used to identify class variables used as input or output parameter.
Annotation attributes <blank> and <blank> are supported by invocable methods and variables.</blank></blank>
‘label‘, ’description‘
Invocable variables also support the <blank> modifier which specifies whether the variable is required and adds a prompt in the UI.</blank>
‘required‘
An Apex method can be invoked from a process using the <blank>.</blank>
Apex action type
Apex code can be called from a flow using one of two flow elements:
Apex Plug-in and Call Apex.
The <blank> interface or the @InvocableMethod annotation can be used to invoke Apex from a flow.</blank>
Process.Plugin
Bulk operations are supported by @InvocableMethod annotation but not Process.Plugin interface. True or False?
True
Classes that implement the Process.Plugin interface will only be available to flows. True or False?
True
Classes with the @InvocableMethod annotation will be available to <blank></blank>
flows, processes, and the REST API.
Values can be passed into Apex-defined variables when a flow is launched from a <blank></blank>
Subflow element, a Visualforce page, or as an action.
If a screen flow executes an invocable method that performs a callout, the <blank> attribute can be added to the annotation. This enables the screen flow to avoid callout errors when the flow also executes DML operations.</blank>
callout=true
What does the Process.Plugin Interface do?
The built-in Process.Plugin interface allows one to process data and pass it to a flow.
The interface exposes the Apex class as a <blank> that accepts input values and returns output back to the flow.</blank>
service
What are the unsupported data types of the Process.Plugin interface?
Blob, Collection, sObject, and Time data types are not supported by Process.Plugin.
The Process.Plugin Interface supports what 3 top level classes?
Process.PluginRequest Class
Process.PluginResult Class
Process.PluginDescribeResult Class
What does the Process.PluginRequest Class do?
Passes input parameters to the flow
What does the Process.PluginResult Class do?
Returns output parameters from the class
What does the Process.PluginDescribeResult Class do?
Passes input parameters from the flow to the class