• Paul P.ax1322
  • 0 Points
  • Member since 2012

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 1

Hey all,


Taking my first plunge into VisualFlow. I've bashed together a lil proof of concept and it's all working fine bar one thing.


What I'd like is that when the flow finishes, the user is taken to another VisualForce page. This Visualforce page is passed a parameter that has the value of a variable in the flow. This is how I'm currently trying to do it:


In the VF page:

<flow:interview name="Test_1" interview="{!myflow}" finishLocation="{!EndPage}"/>


In the controller for this page:

    public PageReference getEndPage() {
        PageReference pageRef = Page.EndOrder;
         String oid =myflow.vOrder;
         pageRef.getParameters().put('order', oid);   
            return pageRef;


where vOrder is a variable set in the flow.


But when I try and load the VF page I get the following error:

System.FlowException: Interview not started


How can I get the variable value that I can pass as a parameter to the follow page?