resolve
Triggered by Batch job
Driver condition
frequency
hourly (specified by configuration yml)
retries
yes. subject to a configurable limit specified by configuration yml
driving table
disbursement_batch_status
eligible envelopes
envelope.disbursement_schedule_date < today AND
envelope.cancellation_status = 'NOT_CANCELLED'
AND
envelope.number_of_disbursements = batch_status.number_of_disbursements_received
AND
envelope.total_disbursement_amount = batch_status.total_disbursement_amount_received
AND disbursement.cancellation_status = 'NOT_CANCELLED'
AND
envelope_batch_status.id_resolution_required = TRUE AND
disbursement_batch_status.mapper_resolved_fa IS NULL
AND
disbursement_batch_status.mapper_resolved_retries < retry_limit
Business logic
Eligible disbursements are pickeup
account_mapper.resolve API is invoked
SUCCESS
The following attributes are updated
disbursement_batch_status.mapper_resolved_fa
disbursement_batch_status.mapper_resolved_phone_number
disbursement_batch_status.mapper_resolved_name
disbursement_batch_status.mapper_resolved_timestamp
disbursement_batch_status.mapper_resolved_retries
FAILURE
The following attributes are updated
disbursement_batch_status.mapper_resolved_retries
Last updated