C1-BC-PROC

This algorithm is invoked when the status of the upload request is changed to Processing. It fetches a list of records which are in the Valid status.

This algorithm behaves differently when invoked from two different business objects - C1-BillableChargeUploadRequest and C1-BillableChargeUploadFI. It does the following when invoked from the respective business object:

  • C1-BillableChargeUploadRequest - For each valid record, this algorithm creates a billable charge against the contract.

  • C1-BillableChargeUploadFI - For each valid record, this algorithm checks whether the membership ID is available in the record. If so, it creates a billable charge against the contract at the respective group or individual membership level. It then stamps the membership ID as a characteristic on the billable charge. While stamping the characteristic, it considers the characteristic type specified in the Membership ID Characteristic for Billable Charge option type of the C1-ASOBLLNG feature configuration.

    However, if the membership ID is not available in the record, this algorithm checks whether the characteristic type specified in the Plan Id Characteristic Type option type of the C1-ASOBLLNG feature configuration is available in the record. If so, it creates a billable charge against the contract at the respective policy plan level. It then stamps the policy plan ID as a characteristic on the billable charge. While stamping the characteristic, it considers the characteristic type specified in the Plan Id Characteristic Type option type of the C1-ASOBLLNG feature configuration.

    If the characteristic type specified in the Plan Id Characteristic Type option type of the C1-ASOBLLNG feature configuration is not available in the record but if the contract ID is available in the record, the system creates a billable charge against the contract.

Note: The system creates the billable charge using the entity business object specified in the respective upload request type.

Finally, the status of the billable charge is set to Billable. If the record is successfully processed, the status of the record is changed to Processed. However, if the record could not be processed successfully due to any reason, the status of the record is changed to Error. Finally, the status of the upload request is changed to Processed.