Zum Hauptinhalt springen

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: The Record has been received but did not pass our internal validation checks. Details are available in the log messages.
  • Completed: The Record has been successfully processed.
  • Failed: The Record could not be processed due to an external transmission failure. Details are available in the log messages.

Modes

  • Processing: Record is being processed.
  • Finished: The Record has been processed, with either a successful or unsuccessful outcome.
Record Resource State and Mode

State Transitions

  • POST → Accepted: The Record is created via an API call and temporarily enters the Accepted state if validated successfully.
  • POST → Rejected: If the Record fails internal validation during creation, it automatically transitions to the Rejected state, providing additional log messages about the error.
  • Accepted → Completed: This transition occurs automatically once the Record has been successfully processed.
  • Accepted → Failed: If an error occurs during processing, the Record automatically transitions to the Failed state, providing additional log messages for debugging.

Mode Transitions

  • Processing → Finished: Once the Record has been processed, regardless of whether the outcome is successful or unsuccessful, it automatically transitions to the Finished mode.