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.
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.
When calling the Generate Insurance Clauses invocable action from Apex, create a GenerateInsuranceClausesOptions instance and set the properties, then use it as optionFlags.
-
GenerateInsuranceClausesOptions Constructors
Learn more about the constructors that are available with the GenerateInsuranceClausesOptions class.
-
GenerateInsuranceClausesOptions Properties
Set the properties in the GenerateInsuranceClausesOptions class to generate insurance product clauses.
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.
-
GenerateInsuranceClausesOptions(saveContext, generateManualClauses)
Creates an options instance for synchronously generating insurance clauses with context and manual clause settings.
-
GenerateInsuranceClausesOptions()
Creates an options instance with the default settings for generating insurance clauses.
Creates an options instance with full control over context saving, manual clause generation, and asynchronous execution.
public GenerateInsuranceClausesOptions(Boolean saveContext, Boolean generateManualClauses, Boolean generateClausesAsync)
saveContext
- Type: Boolean
- Indicates whether to save the operation context (
true) or not (false). The default value istrue.
generateManualClauses
- Type: Boolean
- Indicates whether to generate manual clauses along with automated clauses (
true) or not (false). The default value isfalse.
generateClausesAsync
- Type: Boolean
- Indicates whether to generate clauses asynchronously (
true) or not (false). The default value isfalse.
Creates an options instance for synchronously generating insurance clauses with context and manual clause settings.
public GenerateInsuranceClausesOptions(Boolean saveContext, Boolean generateManualClauses)
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).
Creates an options instance with the default settings for generating insurance clauses.
public GenerateInsuranceClausesOptions()
Set the properties in the GenerateInsuranceClausesOptions class to generate insurance product clauses.
The GenerateInsuranceClausesOptions class includes these properties.
-
Indicates whether clauses are generated asynchronously (true) or synchronously (false).
-
Indicates whether to generate manual clauses along with system-generated clauses (true) or not (false).
-
Indicates whether to save the operation context (true) or not (false).
Indicates whether clauses are generated asynchronously (true) or synchronously (false).
public Boolean generateClausesAsync {get; set;}
Type: Boolean
Indicates whether to generate manual clauses along with system-generated clauses (true) or not (false).
public Boolean generateManualClauses {get; set;}
Type: Boolean
Indicates whether to save the operation context (true) or not (false).
public Boolean saveContext {get; set;}
Type: Boolean