Process Automation & Logic: Declarative Features 2 Flashcards

Using Declarative Functionality and Apex together to Automate (39 cards)

1
Q

<blank> can be invoked from Process Builder to add custom functionality to a process.
</blank>

A

Apex code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

An Apex action can be created and added to the process to invoke Apex code. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

<blank> with appropriate annotation can be used to invoke the methods in an Apex class.
</blank>

A

Invocable methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An Apex action is defined with an <blank> and <blank> for adding Apex code functionality to a process.</blank></blank>

A

Action Name, Apex Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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>

A

@InvocableMethod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a limitation to having an invocable method in an apex class?

A

Only a single method in an Apex class can have the @InvocableMethod annotation, and other annotations cannot be used with it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a limitation of an invocable method itself?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Annotation attributes <blank> and <blank> are supported by invocable methods and variables.</blank></blank>

A

‘label‘, ’description‘

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Invocable variables also support the <blank> modifier which specifies whether the variable is required and adds a prompt in the UI.</blank>

A

‘required‘

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

An Apex method can be invoked from a process using the <blank>.</blank>

A

Apex action type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Apex code can be called from a flow using one of two flow elements:

A

Apex Plug-in and Call Apex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The <blank> interface or the @InvocableMethod annotation can be used to invoke Apex from a flow.</blank>

A

Process.Plugin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bulk operations are supported by @InvocableMethod annotation but not Process.Plugin interface. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Classes that implement the Process.Plugin interface will only be available to flows. True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Classes with the @InvocableMethod annotation will be available to <blank></blank>

A

flows, processes, and the REST API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Values can be passed into Apex-defined variables when a flow is launched from a <blank></blank>

A

Subflow element, a Visualforce page, or as an action.

17
Q

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>

18
Q

What does the Process.Plugin Interface do?

A

The built-in Process.Plugin interface allows one to process data and pass it to a flow.

19
Q

The interface exposes the Apex class as a <blank> that accepts input values and returns output back to the flow.</blank>

20
Q

What are the unsupported data types of the Process.Plugin interface?

A

Blob, Collection, sObject, and Time data types are not supported by Process.Plugin.

21
Q

The Process.Plugin Interface supports what 3 top level classes?

A

Process.PluginRequest Class
Process.PluginResult Class
Process.PluginDescribeResult Class

22
Q

What does the Process.PluginRequest Class do?

A

Passes input parameters to the flow

23
Q

What does the Process.PluginResult Class do?

A

Returns output parameters from the class

24
Q

What does the Process.PluginDescribeResult Class do?

A

Passes input parameters from the flow to the class

25
Salesforce recommends using @InvocableMethod annotation instead of the Process.Plugin interface, True or False?
True
26
An Apex class that implements the Process.Plugin interface can be used as an action in a flow. True or False?
True
27
How can a flow be called from Apex Code?
A flow can be called from Apex code using the Flow.Interview system class.
28
The method of the Flow.Interview class can be used to launch an autolaunched flow or user provisioning flow from Apex.
start
29
The getVariableValue method can be used to return the value of the specified flow variable. True or False?
True
30
Does the start method have a return type?
The start method does not have a return type while the getVariableValue method has the return type of Object.
31
In order for Apex code to successfully call a flow, the status of the flow must be .
active
32
How can a flow be called from apex dynamically?
A flow can be called from Apex dynamically. Meaning, the flow is not fixed or hardcoded in Apex, which allows the flow to invoke to be determined only at run-time.
33
Invocable methods and invocable variables support generic and data types.
sObject, List
34
Support for enables an Apex action to be reused across multiple types of objects.
sObject data types
35
When an Apex class is used as an input or output parameter for an invocable method, the class member variables that need to be available to the method should be annotated with
@InvocableVariable
36
A flow can be referenced in Apex by defining the flow using the syntax.
Flow.Interview.flowName
37
A flow interview can also be created dynamically at run-time using a method.
Flow.Interview
38
The method of the Interview class can be used to start a flow from Apex dynamically.
createInterview()
39