Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify the namespace to register a flow in [SWF-380] #1225

Closed
spring-operator opened this issue Aug 14, 2007 · 2 comments
Closed
Labels
in: core status: declined A suggestion or change that we don't feel we should currently apply type: enhancement
Milestone

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Aug 14, 2007

nebhale opened SWF-380 and commented

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


Affects: 1.0.4

Attachments:

Issue Links:

@spring-operator
Copy link
Contributor Author

nebhale commented

Second try at this code

@spring-operator
Copy link
Contributor Author

Keith Donald commented

Not a good suggestion. Flows themselves provide their own namespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: declined A suggestion or change that we don't feel we should currently apply type: enhancement
Projects
None yet
Development

No branches or pull requests

1 participant