Class TaskAutoAckErrorCommand

  • All Implemented Interfaces:
    org.kie.api.executor.Command, org.kie.api.executor.Reoccurring

    public class TaskAutoAckErrorCommand
    extends AutoAckErrorCommand
    Command that will auto acknowledge task errors based on their status - completed, failed, exited, obsolete, error - will be considered as eligible for ack Following parameters are supported by this command:
    • EmfName - name of entity manager factory to be used for queries (valid persistence unit name)
    • SingleRun - indicates if execution should be single run only (true|false)
    • NextRun - provides next execution time (valid time expression e.g. 1d, 5h, etc)
    • Constructor Detail

      • TaskAutoAckErrorCommand

        public TaskAutoAckErrorCommand()
    • Method Detail

      • findErrorsToAck

        protected List<org.jbpm.runtime.manager.impl.jpa.ExecutionErrorInfo> findErrorsToAck​(javax.persistence.EntityManager em)
        Description copied from class: AutoAckErrorCommand
        Responsible to look up all errors that can be auto acknowledged.
        Specified by:
        findErrorsToAck in class AutoAckErrorCommand
        Parameters:
        em - instance of entity manager to access db
        Returns:
        returns always not null list of results