org.jbpm.model.scheduler
Class Job

java.lang.Object
  extended byorg.jbpm.model.scheduler.Job

public class Job
extends java.lang.Object

contains the information for scheduling jobs. Note that definitionId, processInstanceId and tokenId are optional, but...

When definitionId is not provided, the scheduler will not use the definition-class-loader and hence only find classes that are visible to the jbpm classloader (not classes deployed in the process archives).

When no tokenId or processInstanceId are provided, the ActionHandler cannot perform any methods in the ExecutionContext for which a token is needed (like e.g. the methods get- and setVariable)


Constructor Summary
Job(java.lang.String className, java.util.Date dueDate)
           
Job(java.lang.String className, long delay)
           
Job(java.lang.String className, java.lang.String configuration, java.util.Date dueDate)
           
Job(java.lang.String className, java.lang.String configuration, long delay)
           
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getConfiguration()
           
 java.lang.Long getDefinitionId()
           
 java.util.Date getDueDate()
           
 java.lang.Long getProcessInstanceId()
           
 java.lang.Long getRepeat()
           
 java.lang.Long getTokenId()
           
 void setDefinitionId(java.lang.Long definitionId)
           
 void setProcessInstanceId(java.lang.Long processInstanceId)
           
 void setRepeat(java.lang.Long repeat)
           
 void setTokenId(java.lang.Long tokenId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Job

public Job(java.lang.String className,
           java.util.Date dueDate)

Job

public Job(java.lang.String className,
           long delay)

Job

public Job(java.lang.String className,
           java.lang.String configuration,
           long delay)

Job

public Job(java.lang.String className,
           java.lang.String configuration,
           java.util.Date dueDate)
Method Detail

getClassName

public java.lang.String getClassName()

getConfiguration

public java.lang.String getConfiguration()

getDueDate

public java.util.Date getDueDate()

getDefinitionId

public java.lang.Long getDefinitionId()

setDefinitionId

public void setDefinitionId(java.lang.Long definitionId)

getProcessInstanceId

public java.lang.Long getProcessInstanceId()

setProcessInstanceId

public void setProcessInstanceId(java.lang.Long processInstanceId)

getTokenId

public java.lang.Long getTokenId()

setTokenId

public void setTokenId(java.lang.Long tokenId)

getRepeat

public java.lang.Long getRepeat()

setRepeat

public void setRepeat(java.lang.Long repeat)


Version : jbpm-2.0