Class CollectingUnitOfWork

  • All Implemented Interfaces:
    io.automatiko.engine.api.uow.UnitOfWork

    public class CollectingUnitOfWork
    extends Object
    implements io.automatiko.engine.api.uow.UnitOfWork
    Simple unit of work that collects work elements throughout the life of the unit and invokes all of them at the end when end method is invoked. It does not invoke the work when abort is invoked, only clears the collected items.
    • Field Detail

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • CollectingUnitOfWork

        public CollectingUnitOfWork​(io.automatiko.engine.api.event.EventManager eventManager)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface io.automatiko.engine.api.uow.UnitOfWork
      • end

        public void end()
        Specified by:
        end in interface io.automatiko.engine.api.uow.UnitOfWork
      • abort

        public void abort()
        Specified by:
        abort in interface io.automatiko.engine.api.uow.UnitOfWork
      • intercept

        public void intercept​(io.automatiko.engine.api.uow.WorkUnit work)
        Specified by:
        intercept in interface io.automatiko.engine.api.uow.UnitOfWork
      • managedProcessInstances

        public io.automatiko.engine.api.workflow.ProcessInstances<?> managedProcessInstances​(io.automatiko.engine.api.workflow.Process<?> process,
                                                                                             io.automatiko.engine.api.workflow.ProcessInstances<?> instances)
        Specified by:
        managedProcessInstances in interface io.automatiko.engine.api.uow.UnitOfWork
      • sorted

        protected Collection<io.automatiko.engine.api.uow.WorkUnit<?>> sorted()
      • checkDone

        protected void checkDone()
      • checkStarted

        protected void checkStarted()
      • done

        protected void done()