org.jbpm.command
Class ExecuteJobsCommand

java.lang.Object
  extended by org.jbpm.command.AbstractBaseCommand
      extended by org.jbpm.command.ExecuteJobsCommand
All Implemented Interfaces:
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  Collection acquireJobs()
           
 Object execute(JbpmContext jbpmContext)
           
protected  void executeJob(Job job)
           
protected  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 Object execute(JbpmContext jbpmContext)
               throws Exception
Throws:
Exception

acquireJobs

protected Collection acquireJobs()

executeJob

protected void executeJob(Job job)
                   throws Exception
Throws:
Exception

getNextDueDate

protected Date getNextDueDate()


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