Getting a factory for the work agent

In your WorkAgent implementation class, implement the factory method. This method must return a Factory object, which represents an object that creates work data sets.

The Factory interface defines a single method called createWorkProcessor. The method takes no arguments and returns an instance of your own custom class that implements the WorkSetProcessor interface.

If your agent is transactional, your implementation of the Factory.createWorkProcessor method must return an instance of TransactionalWorkSetProcessor instead of WorkSetProcessor. The TransactionalWorkSetProcessor interface extends WorkSetProcessor. Both interfaces are in the gw.api.integration.inbound.work package.