fix/gossip/add_edge4error: add transsion from error
@@ -39,5 +39,12 @@ for node in [scopes.State.USR_ROOT, scopes.State.USR_ERR]:
# (scopes.GOSSIP, gossip_flow.State.USR_START): gossip_request,
},
)
+simplified_dialogflow.set_error_successor(scopes.State.USR_ROOT, scopes.State.SYS_ERR)
+simplified_dialogflow.set_error_successor(scopes.State.USR_ERR, scopes.State.SYS_ERR)
+simplified_dialogflow.add_system_transition(
+ scopes.State.SYS_ERR,
+ scopes.State.USR_ROOT,
+ gossip_flow.error_response,
+)
composite_dialogflow.set_controller("SYSTEM")
composite_dialogflow._controller = simplified_dialogflow.get_dialogflow()
