• Dale Chen
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have a dev org working fine with the new Queueable interface. Then I need to setup a new org for QA and that org won't compile class implementing Queueable. Some dude suggested changing it to 'queueable' and that seems to fool the compiler, but codes never get run and workbench apex execute tells me this 'COMPILE ERROR: Method does not exist or incorrect signature: System.enqueue(new QTest())'. Is there any config setting I need to turn on in order to use Queueable? Class and codes are on api version 32.0.

Here  is my superduper class:

public class QTest implements Queueable
{
      public void execute(QueueableContext context) 
      {
          System.debug('get here QTest.execute');
      }
}
With 'Queueable' instead of 'queueable', the comipler erros out with this:
"Error: Compile Error: Invalid Interface name provided at line 1 column 14"

Codes at workbench:

QTest q = new QTest();
System.enqueueJob(q);

The error from workbench results:
COMPILE ERROR: Method does not exist or incorrect signature: System.enqueue(QTest)
LINE: 3 COLUMN: 1