Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Type classType = Type.forName('MyBatchClassName');
  2. MyInterFaceName obj = (MyInterFaceName)classType.newInstance();
  3. obj.runBatchConcurrently(); // This is the method which I declared in Interface and implemented in Batch class
  4. system.debug('### obj'+obj); // In debug I am able to see instance of my Batch class
  5. database.executeBatch(obj, 200); // Compile error is coming here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement