Class AutoAckErrorCommand

    • Constructor Detail

      • AutoAckErrorCommand

        public AutoAckErrorCommand()
    • Method Detail

      • getScheduleTime

        public Date getScheduleTime()
        Specified by:
        getScheduleTime in interface org.kie.api.executor.Reoccurring
      • execute

        public org.kie.api.executor.ExecutionResults execute​(org.kie.api.executor.CommandContext ctx)
                                                      throws Exception
        Specified by:
        execute in interface org.kie.api.executor.Command
        Throws:
        Exception
      • findErrorsToAck

        protected abstract List<ExecutionErrorInfo> findErrorsToAck​(javax.persistence.EntityManager em)
        Responsible to look up all errors that can be auto acknowledged.
        Parameters:
        em - instance of entity manager to access db
        Returns:
        returns always not null list of results
      • getAckRule

        protected abstract String getAckRule()
        Returns description of why given jobs can be auto ack'ed