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

49 lines
1.6 KiB
JSON

[
{
"trigger": "scan_data",
"source": "enter_business_profile",
"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_business_profile",
"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_business_profile",
"dest": "enter_gender",
"conditions": "cic_ussd.state_machine.validator.has_empty_gender_profile_data",
"after": "cic_ussd.state_machine.logic.user.save_profile_attribute_to_session_data"
},
{
"trigger": "scan_data",
"source": "enter_business_profile",
"dest": "business_profile_management_pin_authorization"
},
{
"trigger": "scan_data",
"source": "business_profile_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": "business_profile_management_pin_authorization",
"dest": "exit_pin_blocked",
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
},
{
"trigger": "scan_data",
"source": "enter_business_profile",
"dest": "exit_invalid_input"
}
]