Lifecycle of entity records

In ONE ERP the entity's life cycle has the following stages Insert, Update and Delete. Each stage is divided into three phases Before, After and Complete.

The ONE ERP event system is responsible for routing events to consumers. An event is triggered for each phase of each stage, the event name is a concatenation of the phase and stage, as follows:

Phase

Blocking behavior

Insert

Update

Delete

Phase

Blocking behavior

Insert

Update

Delete

Before

Blocking

OnBeforeInsert

OnBeforeUpdate

OnBeforeDelete

After

Blocking

OnAfterInsert

OnAfterUpdate

OnAfterDelete

Complete

Non-blocking

OnCompleteInsert

OnCompleteUpdate

OnCompleteDelete