cic-internal-integration/apps/cic-ussd/transitions/pin_setting_transitions.json

38 lines
1.0 KiB
JSON
Raw Normal View History

2021-02-06 16:13:47 +01:00
[
{
"trigger": "scan_data",
"source": "enter_current_pin",
"dest": "enter_new_pin",
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin"
},
{
"trigger": "scan_data",
"source": "enter_current_pin",
"dest": "exit_pin_blocked",
2021-06-03 15:40:51 +02:00
"conditions": "cic_ussd.state_machine.logic.pin.is_blocked_pin"
2021-02-06 16:13:47 +01:00
},
{
"trigger": "scan_data",
"source": "enter_new_pin",
"dest": "new_pin_confirmation",
"after": "cic_ussd.state_machine.logic.pin.save_initial_pin_to_session_data",
2021-06-03 15:40:51 +02:00
"conditions": "cic_ussd.state_machine.logic.pin.is_valid_new_pin"
2021-02-06 16:13:47 +01:00
},
{
"trigger": "scan_data",
"source": "enter_new_pin",
"dest": "exit_invalid_new_pin"
},
{
"trigger": "scan_data",
"source": "new_pin_confirmation",
"dest": "complete",
"conditions": "cic_ussd.state_machine.logic.pin.pins_match",
2021-06-03 15:40:51 +02:00
"after": "cic_ussd.state_machine.logic.pin.complete_pin_change"
2021-02-06 16:13:47 +01:00
},
{
"trigger": "scan_data",
"source": "new_pin_confirmation",
"dest": "exit_pin_mismatch"
}
]