org.jbpm.command
Class ExecuteJobsCommand

java.lang.Object
  extended by org.jbpm.command.ExecuteJobsCommand
All Implemented Interfaces:
java.io.Serializable, Command

public class ExecuteJobsCommand
extends java.lang.Object
implements Command

Execute all overdue Jobs (may be enhanced with more attributes in future if needed)

Author:
ruecker
See Also:
Serialized Form

Constructor Summary
ExecuteJobsCommand()
           
 
Method Summary
protected  java.util.Collection acquireJobs()
           
 java.lang.Object execute(JbpmContext jbpmContext)
           
protected  void executeJob(Job job)
           
protected  java.util.Date getNextDueDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteJobsCommand

public ExecuteJobsCommand()
Method Detail

execute

public java.lang.Object execute(JbpmContext jbpmContext)
                         throws java.lang.Exception
Specified by:
execute in interface Command
Throws:
java.lang.Exception

acquireJobs

protected java.util.Collection acquireJobs()

executeJob

protected void executeJob(Job job)

getNextDueDate

protected java.util.Date getNextDueDate()