cic-stack/apps/cic-ussd/transitions/signup_transitions.json

51 lines
1.6 KiB
JSON
Raw Normal View History

2021-02-06 16:13:47 +01:00
[
{
"trigger": "scan_data",
"source": "initial_language_selection",
"dest": "initial_pin_entry",
2021-08-06 18:29:01 +02:00
"after": "cic_ussd.state_machine.logic.account.change_preferred_language",
2021-02-06 16:13:47 +01:00
"conditions": "cic_ussd.state_machine.logic.menu.menu_one_selected"
},
{
"trigger": "scan_data",
"source": "initial_language_selection",
"dest": "initial_pin_entry",
2021-08-06 18:29:01 +02:00
"after": "cic_ussd.state_machine.logic.account.change_preferred_language",
2021-02-06 16:13:47 +01:00
"conditions": "cic_ussd.state_machine.logic.menu.menu_two_selected"
},
{
"trigger": "scan_data",
"source": "initial_language_selection",
"dest": "help",
"conditions": "cic_ussd.state_machine.logic.menu.menu_three_selected"
},
{
"trigger": "scan_data",
"source": "initial_language_selection",
"dest": "exit_invalid_menu_option"
},
{
"trigger": "scan_data",
"source": "initial_pin_entry",
"dest": "initial_pin_confirmation",
"after": "cic_ussd.state_machine.logic.pin.save_initial_pin_to_session_data",
"conditions": "cic_ussd.state_machine.logic.pin.is_valid_pin"
},
{
"trigger": "scan_data",
"source": "initial_pin_entry",
"dest": "exit_invalid_pin"
},
{
"trigger": "scan_data",
"source": "initial_pin_confirmation",
2021-08-06 18:29:01 +02:00
"unless": "cic_ussd.state_machine.logic.validator.has_cached_person_metadata",
"conditions": "cic_ussd.state_machine.logic.pin.pins_match",
2021-06-07 09:47:02 +02:00
"dest": "start",
"after": [
"cic_ussd.state_machine.logic.pin.complete_pin_change",
2021-08-06 18:29:01 +02:00
"cic_ussd.state_machine.logic.account.update_account_status_to_active"
2021-02-06 16:13:47 +01:00
]
}
]