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}`); | |
| } |
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
| Feature flag evaluation | |
| Initial | |
| global_toggle_is_on -> On | |
| global_toggle_is_not_on -> UsualRules | |
| UsualRules | |
| staff_id_matches -> On | |
| user_id_matches -> On | |
| email_matches -> On | |
| else -> Off | |
| On |
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
| Feature flag evaluation | |
| Initial | |
| global_toggle_is_on -> On | |
| global_toggle_is_not_on -> UsualRules | |
| UsualRules | |
| staff_id_matches -> On | |
| user_id_matches -> On | |
| email_matches -> On | |
| else -> Off | |
| On |
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
| Feature flag evaluation | |
| Initial | |
| global_toggle_is_on -> On | |
| global_toggle_is_not_on -> UsualRules | |
| UsualRules | |
| staff_id_matches -> On | |
| user_id_matches -> On | |
| email_matches -> On | |
| else -> Off | |
| On |
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
| AdviceModule Statechart | |
| FNA | |
| Invited | |
| start -> StartedQ | |
| StartedQ | |
| submit -> SubmittedQ | |
| Review | |
| reset -> StartedQ | |
| reject -> Abandoned | |
| SubmittedQ |
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
| AdviceModule | |
| FNA | |
| Invited | |
| start -> StartedQ | |
| StartedQ | |
| submit -> SubmittedQ | |
| Review | |
| reset -> StartedQ | |
| reject -> Abandoned | |
| SubmittedQ |
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
| Advice module FSM | |
| Not created* | |
| Client self services from portal -> Tool in progress | |
| Advisor promotes module -> Invited | |
| Invited | |
| Client starts tool -> Tool in progress | |
| Advisor starts tool -> Tool in progress | |
| Tool in progress | |
| Client completes tool -> Awaiting advice | |
| Awaiting advice |
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
| Worksheet | |
| Client actions | |
| Tool available in Hunam* | |
| click tool -> Tool in progress | |
| Tool in progress | |
| Answer questions -> Tool in progress | |
| Complete tool -> Awaiting advice | |
| Published | |
| Accept -> Accepted | |
| Reject -> Not doing |
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
| Wizard | |
| Advised | |
| Overview | |
| Start -> Accepted | |
| Reject -> Rejected | |
| Accepted | |
| Step 1* | |
| Back -> Overview 2 | |
| Save and close -> Overview 2 | |
| Next -> Accepted w decision |
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
| ;; Adapted from cljs.test/assert-predicate | |
| (defn assert-predicate | |
| [form] | |
| (let [args (rest form) | |
| pred (first form)] | |
| `(let [values# (list ~@args) | |
| result# (apply ~pred values#)] | |
| (if result# | |
| true | |
| (throw (ex-info "fail" |