9 comments

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:

0

Even after following this guide when creating a Spring Web Flow file I still get "No flow configuration found, please check Spring setup"

1

Hello Angelo,

Do you have spring config containing <flow-registry> and Web Flow XML files in same location?

 

 

0

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?

0

Angelo,

Is it possible to provide sample project example for investigation?

 

0

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:

<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.4.xsd">

</flow>

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?

0

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

0

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?

0

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.

 

0

Please sign in to leave a comment.