org.jbpm.command
Class ExecuteJobsCommand

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

public class ExecuteJobsCommand
extends AbstractBaseCommand

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 org.jbpm.command.AbstractBaseCommand
getAdditionalToStringInformation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecuteJobsCommand

public ExecuteJobsCommand()
Method Detail

execute

public java.lang.Object execute(JbpmContext jbpmContext)
                         throws java.lang.Exception
Throws:
java.lang.Exception

acquireJobs

protected java.util.Collection acquireJobs()

executeJob

protected void executeJob(Job job)

getNextDueDate

protected java.util.Date getNextDueDate()


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.