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

org.ow2.bonita.persistence.EventDbSession Maven / Gradle / Ivy

/**
 * Copyright (C) 2009-2012 BonitaSoft S.A.
 * BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation
 * version 2.1 of the License.
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License along with this
 * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA  02110-1301, USA.
 **/
package org.ow2.bonita.persistence;

import java.util.List;
import java.util.Set;

import org.ow2.bonita.facade.uuid.ActivityDefinitionUUID;
import org.ow2.bonita.facade.uuid.ActivityInstanceUUID;
import org.ow2.bonita.facade.uuid.ProcessInstanceUUID;
import org.ow2.bonita.runtime.event.EventCouple;
import org.ow2.bonita.runtime.event.IncomingEventInstance;
import org.ow2.bonita.runtime.event.Job;
import org.ow2.bonita.runtime.event.OutgoingEventInstance;

/**
 * @author Charles Souillard, Matthieu Chaffotte
 */
public interface EventDbSession extends DbSession {

  Set getIncomingEvents(ProcessInstanceUUID instanceUUID);

  Set getIncomingEvents(ActivityDefinitionUUID activityUUID);

  Set getIncomingEvents(ActivityInstanceUUID activityUUID);

  Set getIncomingEvents();

  Set getIncomingEvents(String eventName, String toProcessName, String toActivityName,
      ActivityInstanceUUID activityUUID);

  IncomingEventInstance getIncomingEvent(long incomingId);

  IncomingEventInstance getIncomingEvent(ProcessInstanceUUID instanceUUID, String name);

  Set getBoundaryIncomingEvents(ActivityInstanceUUID activityUUID);

  Set getOutgoingEvents(ProcessInstanceUUID instanceUUID);

  Set getOutgoingEvents();

  Set getOutgoingEvents(String eventName, String toProcessName, String toActivityName,
      ActivityInstanceUUID activityUUID);

  OutgoingEventInstance getOutgoingEvent(long outgoingId);

  Set getBoundaryOutgoingEvents(ActivityInstanceUUID activityUUID);

  Set getOverdueEvents();

  Set getActivityIncomingEvents(ActivityInstanceUUID activityUUID);

  Set getSignalIncomingEvents(String signal);

  IncomingEventInstance getSignalStartIncomingEvent(List processName, String signalCode);

  List getMessageStartIncomingEvents(Set processNames);

  void deleteIncompatibleEvents(OutgoingEventInstance outgoing);

  Job getJob(Long jobId);

  Job getJob(ActivityDefinitionUUID activityUUID);

  List getExecutableJobs(List lockedRootInstances, int maxResult);

  Long getNextJobDueDate();

  List getMessageEventCouples();

  List getJobs();

  List getJobsOfExecution(String executionEventUUID);

  List getJobsOfInstance(ProcessInstanceUUID instanceUUID);

  List getJobs(String eventType);

  List getJobs(String eventType, ProcessInstanceUUID instanceUUID);

  List getJobs(String eventType, String eventUUID);

  List getCorrelationKeyMessageEventCouples();

  Long getNextEventDueDate();

  Long getNextExpressionEventDueDate();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy