Hi, I am using rasa 2.8 I want to trigger actions like UserUttered or ActionExecuted from form validation
class ValidateApplyLeavesForm(FormValidationAction):
def name(self):
return "validate_apply_leave_form"
def validate_fromDate(self, slot_value: Any, dispatcher,tracker,domain):
#change intent based on last msg or exit keyword
lastMsg = tracker.latest_message['text']
lastIntent = tracker.latest_message['intent']['name']
lastIntent_confidence = tracker.latest_message['intent']['confidence']
if lastIntent != 'apply_leave':
if lastMsg.lower() == 'exit':
dispatcher.utter_message('Form exited')
#reset all slots and deactivate form
return {'fromDate':None,'toDate':None,'lvType':None,'leave_reason':None,'is_first_half':None,'is_second_half':None,'half_day_detected':None,'is_planned':None,'num_days':None,'requested_slot':None}
like I deactivated this form from validation, can I also trigger UserUttered and ActionExecuted in same way?