C1-REAUDEVNT

If this algorithm is attached to the Audit system event of a business object, it is invoked whenever you define, edit, or delete the respective entity. It checks whether an active audit event type exists for the entity business object. If so, it considers the active audit event type and creates the audit event using the respective audit event type. The system creates the audit event while:

  • Defining an entity when the Add Action option is selected in the audit event type

  • Editing an entity when the Update All option is selected in the audit event type or when the updated element is listed in the Audit Elements for Entity Update section

  • Deleting an entity when the Delete Action option is selected in the audit event type

The entity type and entity ID for which an audit event is created are added corresponding to the audit event in the C1_​AUDIT_​EVENT table. In addition, the effective date is stamped corresponding to the audit event in the C1_​AUDIT_​EVENT table. Note that if the entity has a start date, then the effective date is set to the entity's start date. But, if the entity does not have a start date, then the effective date is set to the system date.

Note: Before creating an audit event, the system checks whether an audit event for the entity ID with the same effective date already exists in the Pending or Error status for the respective action. If so, the system does not create a new audit event for the entity. Instead, the system adds a new log entry in the existing audit event.

At present, this algorithm is designed to work with the following business objects:

  • C1-POLICY

  • C1-ASOPolicy

  • C1-Membership

  • C1-PolicyPlan

  • C1_​PERSON_​BO

  • C1-PricingRuleTierBased

  • C1-PricingRuleAgeBased

If you want to use the audit algorithm for the business objects which are not listed above, you need to create a custom audit algorithm.

It contains the following parameters:

  • Audit Event Business Object - Used to specify the business object using which you want to create the audit event.

  • Audit Event Pending Status - Used to specify the status in which you want to create the audit event. This parameter is also used for determining whether an audit event for the entity ID already exists in the system.

  • Audit Event Error Status - Used to specify the status in which an audit event is transitioned when an error occurs while processing the audit event. This parameter is used for determining whether an audit event for the entity ID already exists in the system.

All the above parameters are mandatory.