Author(s)Keith Donald, Colin Sampaleanu, Erwin Vervaet
Terminates an active flow session when entered. If the terminated session is
the root flow session, the entire flow execution ends. If the terminated
session was acting as a subflow, the governing flow execution continues and
control is returned to the parent flow session. In that case, this state is
treated as an ending result event the resuming parent flow is expected to
respond to.
An end state may optionally be configured with the name of a view to render
when entered. This view will be rendered if the end state terminates the
entire flow execution as a kind of flow ending "confirmation page".
Note: if no viewName property is specified and this
end state terminates the entire flow execution, it is expected that some
action has already written the response (or else a blank response will
result). On the other hand, if no viewName is specified and
this end state relinquishes control back to a parent flow, view rendering
responsibility falls on the parent flow.
An end state may optionally be configured with the name of a view to render when entered. This view will be rendered if the end state terminates the entire flow execution as a kind of flow ending "confirmation page".
Note: if no
viewNameproperty is specified and this end state terminates the entire flow execution, it is expected that some action has already written the response (or else a blank response will result). On the other hand, if noviewNameis specified and this end state relinquishes control back to a parent flow, view rendering responsibility falls on the parent flow.