Allow users to specify the namespace to register a flow in [SWF-380] #1225
Labels
in: core
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
Milestone
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 adelete
flow in theaccount
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
, andcheckout
flows in thebooking
namespace.flow:registry
<namespace root="/WEB-INF"/>
</flow:registry>
/WEB-INF/
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 ashow
and adelete
flow in theaccount
namespace. TODO: Decide what happens with the booking directoryAffects: 1.0.4
Attachments:
Issue Links:
("is depended on by")
The text was updated successfully, but these errors were encountered: