How to create Spring Web Flow Config?
Answered
Added Spring Web Flow framework to my project.
How to create Spring Web Flow Config?!
There are similar question without answer since 2015:
Please sign in to leave a comment.
Make sure you have Spring and Spring Web Flow libraries added to the module dependencies:
and have Web facet configured:
Then option should be available:
Even after following this guide when creating a Spring Web Flow file I still get "No flow configuration found, please check Spring setup"
Hello Angelo,
Do you have spring config containing <flow-registry> and Web Flow XML files in same location?
I only have my Web Flow XML with <flow></flow>
This is an imported project and the web flow works fine. I just can't have Intellij recognize it. Do I need more boilerplate to make it visible, such as the <flow-registry> file you mentioned?
Angelo,
Is it possible to provide sample project example for investigation?
Maybe I was not clear, I apologize. This happens on ANY project, regardless of code. I mean I'm literally following the screenshots up there.
- I add the module dependency (first screenshot)
- I add the Web facet (second screenshot)
- Then I just try to create the xml file using Spring Web Flow option (third screenshot)
The result is a stub file containing this:
And the big error on top that says "No flow configuration found, please check Spring setup"
So I wonder is there an extra step that I need to perform, something that is documented neither by the screenshots above nor by the official IntelliJ documentation? You mentioned that there should be an xml file containing <flow-registry> in the same place where my web flow xml lives, is that it maybe?
Angelo,
Do you mean that the same sample project works fine in Eclipse? Flow-registry is needed to control your application: https://www.baeldung.com/spring-web-flow
I have not tried this in Eclipse, but this web flow works fine even without Flow-registry and without Intellij recognizing it. It's a plugin for Shibboleth, the code is here -> https://github.com/Ratler/shibboleth-mfa-u2f-auth/blob/master/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/U2f/u2f-authn-flow.xml
So I wonder if this is specifically needed by IntelliJ, maybe the Flow-registry is specified in Shibboleth, which is the app for which this plugin is supposed to work with?
Also from the screens above no mention of Flow-registry is done, you should just be able to create a Spring Web Flow xml file in Intellij once you have the facet and the dependency, which does not really happen?
Angelo,
I would assume there is some central configuration that setups/scans for available flow.xml from this Shibboleth framework. If it's not possible to locate/setup this in IDE, the "wrong" inspection "Web Flow Setup" can simply be disabled in inspection settings.