Announcement Announcement Module
Collapse
No announcement yet.
Extending Web flow 2.3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extending Web flow 2.3

    I'm working on a project with Spring Web Flow to manage some configurable flows.

    My main question is: is it possible to extend the framework with custom classes and extend the spring-webflow-2.0.xsd?

    We need to change the default behaviour of Spring Web Flow to achieve the following goals:

    -> Extend the spring-webflow-2.0.xsd in order to add custom elements we need within the "states". And so, extend also the XmlFlowModelBuilder class in order to parse these new custom elements.

    -> We need to be able to set a custom builder (like flow-builder inside flow-registry) which reads several XML resources, each one with its own id, like flow-location-pattern does. So we need a kind of mix between both ways to define a flow-registry. In addition, we would like to get those XML flow definition files from an external source (eg, with a service), and auto-rebuild the flowModels when some of those external XML changes.

    Is it possible? We have found out that the flow-registry element creates a FlowRegistryFactoryBean, which has the main method calls. We would like to customize the class but this is not possible since it is a private class. We cannot even create a bean with this class.

    So how could we make these customizations?

    Thanks in advance,

    Manu

  • #2
    Extending spring web flow

    Originally posted by soriano View Post
    I'm working on a project with Spring Web Flow to manage some configurable flows.

    My main question is: is it possible to extend the framework with custom classes and extend the spring-webflow-2.0.xsd?

    We need to change the default behaviour of Spring Web Flow to achieve the following goals:

    -> Extend the spring-webflow-2.0.xsd in order to add custom elements we need within the "states". And so, extend also the XmlFlowModelBuilder class in order to parse these new custom elements.

    -> We need to be able to set a custom builder (like flow-builder inside flow-registry) which reads several XML resources, each one with its own id, like flow-location-pattern does. So we need a kind of mix between both ways to define a flow-registry. In addition, we would like to get those XML flow definition files from an external source (eg, with a service), and auto-rebuild the flowModels when some of those external XML changes.

    Is it possible? We have found out that the flow-registry element creates a FlowRegistryFactoryBean, which has the main method calls. We would like to customize the class but this is not possible since it is a private class. We cannot even create a bean with this class.

    So how could we make these customizations?

    Thanks in advance,

    Manu
    We have a similar requirement. Please let me know how you solved this? We have a requirement to create a Custom state extendeing view state. To make this happen we need to extend spring web flows AbstractFlowBuilder FlowModelBuilder and FactoryRegistryFactoryBean and configure FactoryRegistryFactoryBean. But curent version(2.3.1) does not support this. Can you please help me on how we can achieve this. Can you please suggest a way to do this with SWF 2.3.1

    Thanks,

    Comment

    Working...
    X