Record States and Modes
This section outlines the possible state
and mode
stages, and transitions associated with the lifecycle of a record resource. The diagram illustrates the transitions of states and modes, highlighting whether they are triggered via API calls or automatically through internal system processes.
States
- Accepted: The Record has been received and successfully validated and is ready for processing.
- Rejected: Record has been identified as invalid by the internal system. Details are available in the log messages.
- Completed: Final state of record indicating that it has been successfully processed.
- Failed: Record could not be processed due to an issue. Details are available in the log messages.
Modes
- Processing: Record is being processed.
- Finished: Processing of record has been completed, either successfully or unsuccessfully.
State Transitions
POST
→ Accepted: Record is created via an API call and temporarily enters state Accepted if validated successfully.POST
→ Rejected: If validation fails during creation, the record automatically transitions to state Rejected, providing additional log messages about the error.- Accepted → Completed: This transition occurs automatically once the record is successfully processed by the system.
- Accepted → Failed: If an error occurs during processing, the record automatically transitions to state Failed, providing additional log messages for debugging.
Mode Transitions
- Processing → Finished: Once the record has been processed (whether successfully or unsuccessfully), it automatically transitions to mode Finished.