i am trying to write a class which will be used as Apex Plugin in flows .i write the code
public class FlowController {
//Instance of the Flow
public Flow.Interview.doubler myFlow {get; set;}
public Double value {get; set;}
public Double getOutput() {
if (myFlow == null) return null;
return (Double)(myFlow.getVariableValue('v1'));
}
public void start() {
Map<String, Object> myMap = new Map<String, Object>();
myMap.put('v1', input);
myFlow = new Flow.Interview.doubler(myMap);
myFlow.start();
}
}
when i try to save it .i get the error
Error: Compile Error: Invalid type: doubler at line 4 column 11
can anyone please tell why i am facing this . i pasted this code from http://www.salesforce.com/us/developer/docs/apexcode/Content/flow_interview_class.htm