Newer Version Available

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

GenerateInsuranceClausesOptions Class

Contains options for generating insurance clauses. Use this class to control context saving, manual clause generation, and asynchronous clause generation when generating product clauses for insurance products.

Usage

Use GenerateInsuranceClausesOptions class when using the Insurance Product Clause Generation API or the Generate Insurance Clauses invocable action to generate insurance clauses so that you can control context saving and synchronous or asynchronous execution.

Example

When calling the Generate Insurance Clauses invocable action from Apex, create a GenerateInsuranceClausesOptions instance and set the properties, then use it as optionFlags.

1// Optional optionFlags for generateInsuranceClauses
2if (inputs != null && inputs.containsKey('optionFlags')) {
3    Map<String, Object> generateClauseOptions =
4        (Map<String, Object>) inputs.get('optionFlags');
5    if (generateClauseOptions != null) {
6        runtime_industries_insurance.GenerateInsuranceClausesOptions generateClauseApexOptions =
7            new runtime_industries_insurance.GenerateInsuranceClausesOptions();
8        if (generateClauseOptions.containsKey('saveContext')) {
9            apexOptions.saveContext =
10                (Boolean) generateClauseOptions.get('saveContext');
11        }
12        if (generateClauseOptions.containsKey('generateManualClauses')) {
13            apexOptions.generateManualClauses =
14                (Boolean) generateClauseOptions.get('generateManualClauses');
15        }
16        if (generateClauseOptions.containsKey('generateClausesAsync')) {
17            generateClauseApexOptions.generateClausesAsync =
18                (Boolean) generateClauseOptions.get('generateClausesAsync');
19        }
20        action.setInvocationParameter('optionFlags', generateClauseApexOptions);
21    }
22}

GenerateInsuranceClausesOptions Constructors

Learn more about the constructors that are available with the GenerateInsuranceClausesOptions class.

The GenerateInsuranceClausesOptions class includes these constructors.

GenerateInsuranceClausesOptions(saveContext, generateManualClauses, generateClausesAsync)

Creates an options instance with full control over context saving, manual clause generation, and asynchronous execution.

Signature

public GenerateInsuranceClausesOptions(Boolean saveContext, Boolean generateManualClauses, Boolean generateClausesAsync)

Parameters

saveContext
Type: Boolean
Indicates whether to save the operation context (true) or not (false). The default value is true.
generateManualClauses
Type: Boolean
Indicates whether to generate manual clauses along with automated clauses (true) or not (false). The default value is false.
generateClausesAsync
Type: Boolean
Indicates whether to generate clauses asynchronously (true) or not (false). The default value is false.

GenerateInsuranceClausesOptions(saveContext, generateManualClauses)

Creates an options instance for synchronously generating insurance clauses with context and manual clause settings.

Signature

public GenerateInsuranceClausesOptions(Boolean saveContext, Boolean generateManualClauses)

Parameters

saveContext
Type: Boolean
Indicates whether to save the operation context (true) or not (false).
generateManualClauses
Type: Boolean
Indicates whether to generate manual clauses along with automated clauses (true) or not (false).

GenerateInsuranceClausesOptions()

Creates an options instance with the default settings for generating insurance clauses.

Signature

public GenerateInsuranceClausesOptions()

GenerateInsuranceClausesOptions Properties

Set the properties in the GenerateInsuranceClausesOptions class to generate insurance product clauses.

The GenerateInsuranceClausesOptions class includes these properties.

generateClausesAsync

Indicates whether clauses are generated asynchronously (true) or synchronously (false).

Signature

public Boolean generateClausesAsync {get; set;}

Property Value

Type: Boolean

generateManualClauses

Indicates whether to generate manual clauses along with system-generated clauses (true) or not (false).

Signature

public Boolean generateManualClauses {get; set;}

Property Value

Type: Boolean

saveContext

Indicates whether to save the operation context (true) or not (false).

Signature

public Boolean saveContext {get; set;}

Property Value

Type: Boolean