
The Visualforce page code:
The Apex Class:<apex:page controller="Quick_Case" >
<flow:interview name="Quick_Case" interview="{!flowInstance}" finishLocation="{!FinishLocation}" buttonLocation="bottom">
<apex:param name="Role" value="{!$User.UserRoleId}"/>
<apex:param name="Department" value="{!$User.Department}"/>
<apex:param name="CurrUserID" value="{!$User.Id}"/>
</flow:interview>
</apex:page>
public class Quick_Case {
Public Flow.Interview.Quick_Case flowInstance{get; set;}
Public PageReference getFinishLocation(){
String ID = '';
if(flowInstance != null)
ID = flowInstance.caseid;
PageReference send = new PageReference('/' + ID);
send.setRedirect(true);
return send;
}
}
답변 1개

I just recreated this flow and visualforce page in my dev org, and was able to get it working. When you created the caseId variable (assuming this is the Id result from the Record Create element?) did you mark it as "Output only" for the Input/Output type? Otherwise, your VF and controller page look good.