Last active
June 18, 2019 14:58
-
-
Save aleph-naught2tog/57d7601d3dfeeb33429d3e70a2d38792 to your computer and use it in GitHub Desktop.
# Transient
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
| # Transient | |
| # The intent here is that a Reissue has been started but nothing has happened | |
| Blank | |
| cancel -> Void | |
| listen -> Accepting | |
| # End | |
| # When a Reissue is voided, nothing happens policywise | |
| Void | |
| # From our perspective, we're just waiting for changes | |
| # "Valid" designates if the Reissue is submittable | |
| Accepting | |
| cancel -> Void | |
| Valid | |
| receive change -> Validating | |
| finalize -> Finalizing | |
| Invalid | |
| receive change -> Validating | |
| # Transient | |
| # A big black box -- we could check a set of business rules on our server, we could hit up FLASH, etc. | |
| # Regardless, we serve _whatever_ we get to the frontend -- yes, that change is valid, or no, that change invalidates the reissue | |
| # This could also include whether we need manual underwriting, a signature, etc | |
| Validating | |
| valid change -> Valid | |
| invalid change -> Invalid | |
| # This is the final check -- we for sure ask FLASH in this stage about whether we need signatures, etc | |
| Finalizing | |
| cancel -> Void | |
| # Transient | |
| Needing | |
| amendment -> Waiting for Signature | |
| endorsement -> Submitting to Underwriting | |
| sogh&endorsement -> Waiting for Signature | |
| # Locked | |
| # At this point, if a reissue wants to be aborted, we have to do a bit more -- we have created a DB row at this point, so we need to mark that the Reissue has been halted b/c it could be out for signature, etc | |
| Processing | |
| abort -> Cancelling | |
| # Waiting | |
| Waiting for Signature | |
| timeout -> Rejected | |
| get signature -> Submitting to Underwriting | |
| Submitting to Underwriting | |
| needs_manual -> Waiting for Underwriting | |
| automatic -> Accepted | |
| # End | |
| Waiting for Underwriting | |
| is underwritten -> Accepted | |
| # Odds of this ever happening are probably low | |
| is not underwritten -> Rejected | |
| # End | |
| Accepted | |
| # End | |
| Rejected | |
| # End | |
| Cancelling |
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