Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:51:41+00:00 2026-06-08T19:51:41+00:00

In our application we are using Spring WebFlow to navigate users through the site.

  • 0

In our application we are using Spring WebFlow to navigate users through the site. In certain pages i need to know from which flow i started the current subflow. Is there any simple way to get this information in Spring WebFlow?

I am using Spring WebFlow version 2.0.9 and unfortunatelly cannot upgrade to newer version.

Simple example:

I am having pages foo/foo.xhtml called from foo/flow.xml, bar/bar.xhtml called from bar/flow.xml.
Finally i have baz/baz.xhtml that has a baz/flow.xml. This is called as subflow from either foo flow or bar flow. In backing bean of baz flow i need to see the “history” how i called my baz/flow.xml

Solution found for this question:
you could also implement your own FLowExecutionListener, and when you enter a StateDefinition you can check if it’s an instance of SubflowState and get the name of the parent. Then maybe you could just put that variable in the FlowScope to use it in your state – rptmat57

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:51:43+00:00Added an answer on June 8, 2026 at 7:51 pm

    what about using a input on the original flow that you would set in each subflow?
    in baz/flow.xml:

    <input name="comingFrom" type="string">

    in foo/flow.xml:

    <subflow-state id="subFlowFoo" subflow="baz">
    <input name="comingFrom" value="Foo" type="string"/>
    ...
    </sublfow-state>

    in bar/flow.xml:

    <subflow-state id="subFlowBar" subflow="baz">
    <input name="comingFrom" value="Bar" type="string"/>
    ...
    </sublfow-state>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using spring security to authenticate users from LDAP in our application. The
We are using OpenSessionInViewFilter in our JSF 1.1 web application which is using Spring
Our application is developed using Spring framework. Is it good practice to check null
In our Struts2-Spring application we are using the follwoing lines of code access the
So we're almost at our goal to test-drive our spring web-mvc application. We're using
Goal : Our application is built using multiple types (e.g. Person, PersonSite(ICollection), Site -
After a couple of months of using our application (which internally uses Jackrabbit 1.6.4
Our application downloads data from the internet using RSS but is having connection problems
We are using Spring MVC 3.0 in our web application. We are also using
We are using freemarker for templates in our web application. We are using spring's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.