Announcement Announcement Module
No announcement yet.
Multitenant SWF Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multitenant SWF

    I'm trying to work out the best way to have SWF work in our multitenant application. What I want to use have a default flow registry and the have a per tenant flow registry each tenant flow registry would have an id of flowregistry-tenantKey.

    When we get a request to the web flow system it will have a URL like /registration/house what the web flow system should then do is query an object in the users session to get the tenant context from this we would know which flow registry to look in for the flow definition, if the flow was not found in the tenant specific flow registry it would look in the default.

    Does this sound like a reasonable design? If so what custom SWF components would I need to implement and how would I plug them into SWF?

    Any ideas greatly appreciated.

  • #2
    Maybe you could achieve this using SpEL and a top-level flow that dispatches to the correct tenant flow?

    <subflow-state id="dispatch" subflow="flowregistry-#{externalContext.sessionMap['specialKey'] ?: 'default'}">
        <transitions ...>