39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
[
|
|
{
|
|
"trigger": "scan_data",
|
|
"source": "enter_date_of_birth",
|
|
"dest": "dob_edit_pin_authorization",
|
|
"after": "cic_ussd.state_machine.logic.account.save_metadata_attribute_to_session_data",
|
|
"conditions": [
|
|
"cic_ussd.state_machine.logic.validator.has_cached_person_metadata",
|
|
"cic_ussd.state_machine.logic.validator.is_valid_date"
|
|
]
|
|
},
|
|
{
|
|
"trigger": "scan_data",
|
|
"source": "enter_date_of_birth",
|
|
"dest": "enter_location",
|
|
"conditions": "cic_ussd.state_machine.logic.validator.is_valid_date",
|
|
"after": "cic_ussd.state_machine.logic.account.save_metadata_attribute_to_session_data",
|
|
"unless": "cic_ussd.state_machine.logic.validator.has_cached_person_metadata"
|
|
},
|
|
{
|
|
"trigger": "scan_data",
|
|
"source": "enter_date_of_birth",
|
|
"dest": "exit_invalid_input",
|
|
"unless": "cic_ussd.state_machine.logic.validator.is_valid_date"
|
|
},
|
|
{
|
|
"trigger": "scan_data",
|
|
"source": "dob_edit_pin_authorization",
|
|
"dest": "exit",
|
|
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
|
"after": "cic_ussd.state_machine.logic.account.edit_user_metadata_attribute"
|
|
},
|
|
{
|
|
"trigger": "scan_data",
|
|
"source": "dob_edit_pin_authorization",
|
|
"dest": "exit_pin_blocked",
|
|
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
|
}
|
|
] |