org.jbpm.jobexecutor
Interface JobSession
- All Known Implementing Classes:
- StandardJobSession
public interface JobSession
- Author:
- Tom Baeyens, Pascal Verdage
save
void save(Job<?> job)
- save a job
delete
void delete(Job<?> job)
- delete a job
getFirstAcquirableJob
Job<?> getFirstAcquirableJob()
- Returns:
- the first job to finish among eligible and non-locked jobs or null if none
findExclusiveJobs
java.util.List<Job<?>> findExclusiveJobs(Execution processInstance)
- Returns:
- the list of jobs of the process instance that mustn't be concurrent
getFirstDueJob
Job<?> getFirstDueJob()
- Returns:
- the first job to finish among non-owned jobs or null if none
get
Job<?> get(long jobId)
- Returns:
- the job with the given id or null if none
findNextTimer
Timer findNextTimer()
- Returns:
- the next timer that will fire or null if none
findAllTimers
java.util.List<Timer> findAllTimers()
- Returns:
- all the timers
findTimers
java.util.List<Timer> findTimers(Execution execution)
- Returns:
- all the timers scheduled on a given execution