OST does not include Flow/Process names for use with Flow.Interview.XXX
Issue #1155
resolved
With the change for test coverage on flows, I am looking at invoking flows from Apex in test classes to better focus the tests and ensure each flow is tested. So I noticed that the OST does not want to resolve the flows for Flow.Interview.{FLOW_API_NAME} and highlights it as an error.
eg
Map<String, Object> inputs = new Map<String, Object>();
inputs.put('AccountId', myAccount);
inputs.put('OpportunityId', myOppty);
Flow.Interview.myTestFlow testFlow = new Flow.Interview.myTestFlow(inputs);
testFlow.start();
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/flow_interview_class.htm
Comments (4)
-
reporter -
repo owner Issue
#1228was marked as a duplicate of this issue. -
repo owner Fix committed for the next build.
-
repo owner - changed status to resolved
Delivered in 2.3.0.5.
- Log in to comment
look forward to seeing this fixed