Created
August 27, 2025 18:17
-
-
Save iKlsR/52b3d98fadbebb7b637ffc0a5d129a13 to your computer and use it in GitHub Desktop.
# Package Status Flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package Status Flow | |
READY | |
VALIDATE_ADDRESS -> IN_TRANSIT | |
ADDRESS_INVALID -> INVALID_ADDRESS | |
SKIP_DELIVERY -> SKIPPED | |
INVALID_ADDRESS | |
FIX_ADDRESS -> READY | |
SKIP_DELIVERY -> SKIPPED | |
RETURN_PACKAGE -> RETURNED | |
IN_TRANSIT | |
DELIVER -> DELIVERED | |
ADDRESS_ISSUE -> INVALID_ADDRESS | |
SKIP_DELIVERY -> SKIPPED | |
RETURN_PACKAGE -> RETURNED | |
DELIVERED | |
# Final state - no transitions | |
SKIPPED | |
RETRY -> READY | |
RETURN_PACKAGE -> RETURNED | |
RETURNED | |
# Final state - no transitions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment