You are here:
InsPolicyService:initiateLapseGracePeriod
This service initiates a grace period on a policy, lapses a policy, or does nothing to a policy, depending on factors of the policy.
This service works with the Vlocity Policy (Asset) object, not the Salesforce FSC InsurancePolicy object.
Method: inititateLapseGracePeriod
How It Works
-
Takes the
assetIdand retrieves the policy. -
Retrieves the
Status,GracePeriodStartDate__c,GracePeriodEndDate__c, andExpirationDate__cvalues from the policy. -
If Status =
Activeand theGracePeriodStartDate__cis greater than or equal to today:-
Updates the Status to
Pending Lapse. -
Creates a new transaction on the policy of type
Initiate Grace Periodwith effective date =GracePeriodStartDate__c.
-
-
If the Status =
Pending Lapseand theGracePeriodEndDate__cis greater than or equal to today:-
Updates the Status to
Lapsed. -
Sets the
OriginalExpirationDate__cof the policy toExpirationDate__c. -
Sets the
ExpirationDate__cof the policy to today. -
If the policy has a Billing Account the
BillStatus__con the Billing Account is set toTerminated. Otherwise, theBillStatus__con the policy is set toTerminated.
-
-
Returns the Id of the created transaction in the
transactionIdfield.

