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

38 lines
1.3 KiB
JSON
Raw Normal View History

2021-02-06 16:13:47 +01:00
[
{
"trigger": "scan_data",
"source": "enter_gender",
2021-06-30 16:27:56 +02:00
"dest": "enter_date_of_birth",
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
2021-06-03 15:40:51 +02:00
"conditions": "cic_ussd.state_machine.logic.validator.is_valid_gender_selection",
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
2021-02-06 16:13:47 +01:00
},
{
"trigger": "scan_data",
"source": "enter_gender",
2021-06-03 15:40:51 +02:00
"dest": "gender_edit_pin_authorization",
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
"conditions": [
"cic_ussd.state_machine.logic.validator.has_cached_user_metadata",
"cic_ussd.state_machine.logic.validator.is_valid_gender_selection"
]
2021-02-06 16:13:47 +01:00
},
{
"trigger": "scan_data",
2021-06-03 15:40:51 +02:00
"source": "gender_edit_pin_authorization",
2021-02-06 16:13:47 +01:00
"dest": "exit",
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
2021-06-03 15:40:51 +02:00
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute"
2021-02-06 16:13:47 +01:00
},
{
"trigger": "scan_data",
2021-06-03 15:40:51 +02:00
"source": "gender_edit_pin_authorization",
2021-02-06 16:13:47 +01:00
"dest": "exit_pin_blocked",
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
},
{
"trigger": "scan_data",
"source": "enter_gender",
"dest": "exit_invalid_menu_option"
2021-02-06 16:13:47 +01:00
}
]