Bulk insert work queue declaration and constructor

In the declaration of your bulk insert work queue class, you must include the extends clause to derive your work queue class from abstract class BulkInsertWorkQueueBase. Your custom class must include a constructor that calls the constructor in the base class using the super syntax. Your constructor associates your bulk insert work queue class at runtime with the following items:

  • The work queue typecode in the BatchProcessType typelist
  • The work queue item type
  • The user under which the database transaction runs

The following example code declares a bulk insert work queue type and implements a constructor. Unlike a work queue class that you derive from WorkQueueBase, the constructor does not specify the entity type of the Target fields on the work items for the work queue.

class MyBulkInsertWorkQueue extends BulkInsertWorkQueueBase <User, StandardWorkItem> {

  construct () {
    super(BatchProcessType.TC_MYBULKINSERTWORKQUEUE, StandardWorkItem, User) 
  }
  ...
}