You are here:
InsPolicyService:renewPoliciesInBatch
Use this service to control the number of Apex jobs to initiate, and the number of batches to run per Apex job, for a large number of policy renewals.
How it Works
This service initiates multiple Apex jobs and each job renews the policies in
batches by invoking createRenewalPolicy service internally.
-
The service takes a list of
policyIds. -
The service breaks the list into the desired sub-list policies and sends those to the
createRenewalPolicyservice for creation of renewal policies.
Remote Options
Remote Option |
Description |
|---|---|
|
The service class name
( |
|
Number of policies to be renewed, per asynchronous Apex job. This parameter determines how many Apex jobs are instantiated, given the number of policies to be renewed. Important
Salesforce allows a maximum five Apex jobs to run in parallel. |
|
Number of policies to be renewed, per batch job. This parameter determines how many batches to run, as per the number of policies needed to process within one job. |

