Rasa Loops/Forms: Why do i have to reset the form/loop after handling an intent

Hi,

I have a problem understanding the following example from here:

rules:
- rule: Example of an unhappy path
  condition:
  # Condition that form is active.
  - active_loop: restaurant_form
  steps:
  # This unhappy path handles the case of an intent `chitchat`.
  - intent: chitchat
  - action: utter_chitchat
  # Return to form after handling the `chitchat` intent
  - action: restaurant_form
  - active_loop: restaurant_form

I dont understand the last two actions, namely

  # Return to form after handling the `chitchat` intent
  - action: restaurant_form
  - active_loop: restaurant_form

Why do i have to set the active loop again? From the condition i am able to know that the loop is already active.

Thanks in advance.

I tested it: Even if I dont include the last two lines into a story the form seems to be exceuted successfuly. Is this an obsolete entry?

yes the last active_loop: restaurant_form is not necessary, since it is already set above, however - action: restaurant_form is necessary to tell the bot that form should be called again. Are you sure it is working without it?