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

50 lines
1.6 KiB
JSON
Raw Normal View History

2021-02-06 16:13:47 +01:00
[
{
"trigger": "scan_data",
"source": "enter_gender",
"dest": "enter_first_name",
"conditions": [
"cic_ussd.state_machine.logic.validator.is_valid_name",
"cic_ussd.state_machine.logic.validator.has_empty_username_data"
],
"after": "cic_ussd.state_machine.logic.user.save_profile_attribute_to_session_data"
},
{
"trigger": "scan_data",
"source": "enter_gender",
"dest": "enter_location",
"conditions": "cic_ussd.state_machine.validator.has_empty_location_data",
"after": "cic_ussd.state_machine.logic.user.save_profile_attribute_to_session_data"
},
{
"trigger": "scan_data",
"source": "enter_gender",
"dest": "enter_business_profile",
"conditions": "cic_ussd.state_machine.validator.has_empty_business_profile_data",
"after": "cic_ussd.state_machine.logic.user.save_profile_attribute_to_session_data"
},
{
"trigger": "scan_data",
"source": "enter_gender",
"dest": "gender_management_pin_authorization",
"conditions": "cic_ussd.state_machine.logic.validator.has_complete_profile_data"
},
{
"trigger": "scan_data",
"source": "gender_management_pin_authorization",
"dest": "exit",
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
"after": "cic_ussd.state_machine.logic.user.persist_profile_data"
},
{
"trigger": "scan_data",
"source": "gender_management_pin_authorization",
"dest": "exit_pin_blocked",
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
},
{
"trigger": "scan_data",
"source": "enter_gender",
"dest": "exit_invalid_input"
}
]