Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-158

Introduce Flow controller exception handling

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 2.0 M4
    • Component/s: Core: Flow Executor
    • Labels:
      None

      Description

      Currently there is no support in Spring Web Flow for handling exceptions that occur outside a Flow Execution (at the Flow executor level). Specifically these exceptions can occur launching new executions (NoSuchFlowDefinitionException) and restoring existing executions (NoSuchFlowExecution or BadlyFormattedFlowExecutionKeyException).

      This ticket should introduce generic code to handle these exceptions by taking an appropriate response action. Two response actions to be supported include routing to an error view and restarting the flow (if possible).

      Sam Brennan's SpringWebFlowExceptionResolver serves as the start of this work:

      SpringWebFlowExceptionResolver is a custom extension of org.springframework.web.servlet.handler.SimpleMappingExceptionResolver which resolves Spring Web Flow (SWF) exceptions by redirecting to the originating flow URL to launch a new flow. The list of exceptions that should be resolved is configurable and therefore not limited to exceptions from the SWF framework.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kdonald Keith Donald
                Reporter:
                sbrannen Sam Brannen
              • Votes:
                7 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: