AddEligibleInsuranceClausesOptions Class

Contains options for adding eligible product clauses to an insurance product. Use this class when configuring which clauses, such as exclusions or coverage terms, are available for selection on an insurance product.

Namespace 

runtime_industries_insurance

Usage 

Use the AddEligibleInsuranceClausesOptions class with the Add Eligible Insurance Clauses invocable action to add eligible insurance clauses.

Example 

When calling the Add Eligible Insurance Clauses invocable action from Apex, create an AddEligibleInsuranceClausesOptions instance and set the properties, then use it as addClauseOptions.

1// Optional optionFlags for addEligibleInsuranceClauses
2if (inputs != null && inputs.containsKey('optionFlags')) {
3    Map<String, Object> addClauseOptions =
4        (Map<String, Object>) inputs.get('optionFlags');
5    if (addClauseOptions != null) {
6        runtime_industries_insurance.AddEligibleInsuranceClausesOptions addClauseApexOptions =
7            new runtime_industries_insurance.AddEligibleInsuranceClausesOptions();
8        if (addClauseOptions.containsKey('saveContext')) {
9            addClauseApexOptions.saveContext =
10                (Boolean) addClauseOptions.get('saveContext');
11        }
12        action.setInvocationParameter('addClauseOptions', addClauseApexOptions);
13    }
14}

AddEligibleInsuranceClausesOptions Constructors 

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

The AddEligibleInsuranceClausesOptions class includes these constructors.

AddEligibleInsuranceClausesOptions(saveContext) 

Creates an options instance with the specified context-saving behavior for adding eligible insurance clauses.

Signature 

public AddEligibleInsuranceClausesOptions(Boolean saveContext)

Parameters 

saveContext

  • Type: Boolean
  • Indicates whether to save the operation context when adding eligible insurance clauses (true) or not (false).
  • The default value is true.

AddEligibleInsuranceClausesOptions() 

Creates an options instance with default settings for adding eligible insurance clauses. Context is not saved by default.

Signature 

public AddEligibleInsuranceClausesOptions()

AddEligibleInsuranceClausesOptions Properties 

Set the AddEligibleInsuranceClausesOptions class property to save the context of a quote.

The AddEligibleInsuranceClausesOptions class includes this property.

  • saveContext

    Indicates whether to save the operation context when adding eligible insurance clauses (true) or not (false).

saveContext 

Indicates whether to save the operation context when adding eligible insurance clauses (true) or not (false).

Signature 

public Boolean saveContext {get; set;}

Property Value 

Type: Boolean