Declaring whether your work agent is transactional
PolicyCenter
determines whether a work agent is transactional by calling the transactional plugin method. A
transactional work agent creates work items with a slightly different
interface. There are additional methods that you must implement to begin
work, commit work, and roll back transactional changes to partially finished
work. To specify that your work agent is transactional, return true from the transactional method. Otherwise,
return false.
If your work agent is transactional, your
implementation of the Factory.createWorkUnit
method must return an instance of TransactionalWorkSetProcessor
instead of WorkSetProcessor.
The TransactionalWorkSetProcessor
interface extends WorkSetProcessor.
