Other Automated Journeys
The purpose of the job is to make the transition of a specific policy to the InForce status automatically. It runs on a daily basis at 01:00 AM and it calls the FTOS_INSPA_Policy_IssuedToEnforced
endpoint.
The FTOS_INSPA_Policy_IssuedToEnforced
endpoint excludes from the automatic flow the policies that do not have Automatic In Force bool attribute set to true at the product level.
From the FTOS_INS_PolicyAdmin library, the following function is used:
Function jobScript
- The function selects all the policies that are in the Issued business status, have the same begin date as the current date and have the product with the Automatic InForce checkbox selected. On the policies that have been found, the script goes ahead and changes the business status to InForce.
Input parameters: N/A
Output parameters: N/A
The purpose of the job is to make the transition of a specific policy from the Proposal to the Withdraw Status automatically. It runs on a daily basis at 02:00 AM and it calls the FTOS_PA_PolicyWithdraw
endpoint.
The FTOS_PA_PolicyWithdraw
endpoint transitions the policy from the Proposal to the Withdraw business status, after a number of days since the first installment moved to Unpaid status. The number of days is set up in the PWDAY withdraw parameter.
From the FTOS_INS_PolicyAdmin library, the following functions are used:
FunctionwithdrawPolicies
- The function selects all the policies that are in the Proposal business status and have an installment that moved to the Unpaid status with a set number of days before the current date. On the policies that have been found, the script goes ahead and changes the business status to Withdraw.
-
Input parameters: N/A
-
Output parameters: N/A
Function convertDateFromInvariant
- The function converts an Invariant date to a string format by adding the time next to it and then it makes a newDate
object with it. On the policies that have been found, the script goes ahead and changes the business status to Withdraw.
-
Input parameters:
date
- The invariant date. -
Output parameters:
dateObj
- The new date object.
FunctiongetInterval
- first imports the library required for getting the parameter’s value, from FTOS_PA_FlowParameter and then by calling the method (getFlowParameterValueByCode)
it obtains the specific value of the parameter. The function goes on and calculates two interval ends necessary for checking if any installment has transitioned to the Unpaid status. minDate
is calculated by subtracting the parameter’s value from the current date and maxDate
is calculated by adding a day to the minDate
.
-
Input parameters: N/A
-
Output parameters: N/A