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:

PhaseBlocking behaviorInsertUpdateDelete
BeforeBlockingOnBeforeInsertOnBeforeUpdateOnBeforeDelete
AfterBlockingOnAfterInsertOnAfterUpdateOnAfterDelete
CompleteNon-blockingOnCompleteInsertOnCompleteUpdateOnCompleteDelete