You need to sign in to do that
Don't have an account?
Ovi
Invoke visual flow from apex
Is it possible to invoke a Visual Flow from apex programatically.
The flow does not require any user interactions.
I have tried with a Http request from a apex class, but that does not seem to start the flow.
Anyone knows how to achieve this?
The flow does not require any user interactions.
I have tried with a Http request from a apex class, but that does not seem to start the flow.
Anyone knows how to achieve this?
Process.Plugin is a built-in interface that allows you to pass data between your organization and a specified flow. For details please refer:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_process_plugin.htm
You can embed a flow in visualforce page using <flow:interview> tag.
EX: <!-- Page: -->
<apex:page controller="exampleCon">
<!-- embed a simple flow -->
<flow:interview name="my_flow" interview="{!my_interview}"></flow:interview>
<!-- get a variable from the embedded flow using my_interview.my_variable -->
<apex:outputText value="here is my_variable : {!my_interview.my_variable}"/>
</apex:page>
/*** Controller ***/
public class exampleCon {
Flow.Interview.my_flow my_interview {get; set;}
}
For details please refer visualforce guide:
http://www.salesforce.com/us/developer/docs/pages/