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 8375847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:16:56+00:00 2026-06-09T15:16:56+00:00

I have some code in a form action class that needs to get the

  • 0

I have some code in a form action class that needs to get the flowExecutionKey from the RequestContext. I can’t seem to find any documentation on how to do this. My class looks something like this:

public class MyFormAction extends FormAction
{
    public Event doStuff(RequestContext context)
    {
        String flowExecutionKey = ...??
        ...
    }
}

I know I really shouldn’t need to ever get the flowExecutionKey, but I’m dealing with some legacy code that requires it. This method is being called as an entry action for a view state. I tried context.getFlowExecutionContext().getKey() but it returns null. context.getFlowExecutionUrl() also returns null. Is there any way to do this?

UPDATE

I was playing around with this some more, and context.getFlowExecutionContext().getKey() does get the the flowExecutionKey when the method is called in the <on-render> instead of <on-entry>. It is also worth noting that it works during <on-entry> on a later view state. The view state it’s not working on is the very first view state in my flow. Is there some reason I can’t get the flowExecutionKey in <on-entry> on the first view state?

  • 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-09T15:16:57+00:00Added an answer on June 9, 2026 at 3:16 pm

    The <on-entry> callback is executing during the inital POST to the server. This will have a URL something like http://server/myflow. After that’s complete, webflow will issue a redirect to http://server/myflow?execution=e1s1. It’s during this call that <on-render> executes.

    So, the reason you’re not getting the key in the initial <on-render is that there isn’t a key allocated yet. And the key that you’re seeing in later <on-render>s is actually the key of the previous view.

    Take a look at RequestContext.getFlowExecutionUrl() too – that will tell you the URL of the current request. That should shed a bit of light.

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

Sidebar

Related Questions

I am working on some code, basically I have a form. On that form
I have a search form: <form class=searchForm id=topSearchForm action=/search.ds> that has an onsubmit-event attached
I have some code to display a long list of languages inside Rails form
I have been given some generated code which looks like so: <form id=form1 method=post
I have a bunch of code of the form: someVector.push_back(Foo(some name, 1.0, 3.1415926); someVector.push_back(Foo(different
I have some code that will change the background color of a specific label
I have some code here that uses bitsets to store many 1 bit values
I have some code that is supposed to return an NSString. Instead it is
I have some code that generates Visio masters for me, and some masters have
I have some code that causes the box2d physics simulation to stutter forever after

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.