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
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.