OST does not include Flow/Process names for use with Flow.Interview.XXX

Issue #1155 resolved
Tony White created an issue

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)

  1. Log in to comment