append

abstract suspend fun append(entry: JournalEntry<P>): JournalOutcome<AppendedEntry<P>>

Appends entry to the journal.

For EntryPhase.Intent entries the executor calls this before invoking the step's forward action. If this returns JournalOutcome.Err, the step is vetoed and never runs.

Return

JournalOutcome.Ok with the persisted AppendedEntry, or JournalOutcome.Err on storage failure.