All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.persistence.entity.JobEntityManager Maven / Gradle / Ivy

There is a newer version: 7.1.0.M6
Show newest version
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.activiti.engine.impl.persistence.entity;

import java.util.Date;
import java.util.List;

import org.activiti.engine.impl.JobQueryImpl;
import org.activiti.engine.impl.Page;
import org.activiti.engine.runtime.Job;

/**
 * @author Joram Barrez
 */
public interface JobEntityManager extends EntityManager {
  
  TimerEntity createTimer();
  
  TimerEntity createTimer(TimerEntity timerEntity);
  
  MessageEntity createMessage();
  

  void execute(JobEntity jobEntity);
  
  void send(MessageEntity message);

  void schedule(TimerEntity timer);

  void retryAsyncJob(JobEntity job);
  

  List findNextJobsToExecute(Page page);

  List findNextTimerJobsToExecute(Page page);

  List findAsyncJobsDueToExecute(Page page);

  List findJobsByLockOwner(String lockOwner, int start, int maxNrOfJobs);

  List findJobsByExecutionId(String executionId);

  List findExclusiveJobsToExecute(String processInstanceId);

  List findUnlockedTimersByDuedate(Date duedate, Page page);

  List findTimersByExecutionId(String executionId);

  List findJobsByQueryCriteria(JobQueryImpl jobQuery, Page page);

  List findJobsByTypeAndProcessDefinitionIds(String jobHandlerType, List processDefinitionIds);

  List findJobsByTypeAndProcessDefinitionKeyNoTenantId(String jobHandlerType, String processDefinitionKey);

  List findJobsByTypeAndProcessDefinitionKeyAndTenantId(String jobHandlerType, String processDefinitionKey, String tenantId);

  List findJobsByTypeAndProcessDefinitionId(String jobHandlerType, String processDefinitionId);

  long findJobCountByQueryCriteria(JobQueryImpl jobQuery);
  

  void updateJobTenantIdForDeployment(String deploymentId, String newTenantId);
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy