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

Allow users to specify the namespace to register a flow in

    XMLWordPrintable

    Details

      Description

      Currently the XMLFlowRegistrar will register all flows into the root namespace. The registrar should be able to take an explicit namespace mapping for a collection of flows and register all flows in that connection with the proper namespace. This ability should be extended to the <flow:registry/> element in the XML namespace configuration. For example:

      <flow:registry>
      <location path="sellitem-flow.xml"/>
      </flow:registry>

      would register the `sellitem-flow` flow in the root or `` namespace. Wildcards are still acceptable in the location tag.

      <flow:registry>
      <namespace name="/account">
      <location path="/WEB-INF/account/show.xml"/>
      <location path="/WEB-INF/account/delete.xml"/>
      </namespace>
      </flow:registry>

      would register a collection of flows explicitly to a namespace. In this example there would be a `show` and a `delete` flow in the `account` namespace. Wildcards are still acceptable in the location tag.

      <flow:registry>
      <namespace name="/booking">
      <location path="/WEB-INF/booking/main/main.xml"/>
      <location path="/WEB-INF/booking/seatassignment/seatassignment.xml"/>
      <location path="/WEB-INF/booking/checkout/checkout.xml"/>
      </namespace>
      </flow:registry>

      would register `main`, `seatassignment`, and `checkout` flows in the `booking` namespace.

      <flow:registry>
      <namespace root="/WEB-INF"/>
      </flow:registry>

      /WEB-INF/
      + account/
      + show.xml
      + delete.xml
      + booking/
      + main/
      + main.xml
      + seatassignment/
      + seatassignment.xml

      would register all flows in the subdirectories of `/WEB-INF/flows` to a namespace of their directories and a name of the file. In this example there would be a `show` and a `delete` flow in the `account` namespace. TODO: Decide what happens with the booking directory

        Attachments

        1. clipboard.txt
          101 kB
        2. clipboard.txt
          68 kB
        3. clipboard.txt
          59 kB
        4. mylyn-context.zip
          14 kB
        5. mylyn-context.zip
          14 kB
        6. mylyn-context.zip
          12 kB
        7. mylyn-context.zip
          10 kB

          Issue Links

            Activity

              People

              Assignee:
              kdonald Keith Donald
              Reporter:
              nebhale nebhale
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1.25d
                  1.25d
                  Remaining:
                  Time Spent - 1d Remaining Estimate - 0.25d
                  0.25d
                  Logged:
                  Time Spent - 1d Remaining Estimate - 0.25d
                  1d