org.jbpm.job
Class Job

java.lang.Object
  extended by org.jbpm.job.Job
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CleanUpProcessJob, ExecuteActionJob, ExecuteNodeJob, Timer

public abstract class Job
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Job()
           
Job(Token token)
           
 
Method Summary
abstract  boolean execute(JbpmContext jbpmContext)
           
 java.util.Date getAqcuireDate()
          Deprecated. call getLockTime() instead
 java.lang.String getConfiguration()
           
 java.util.Date getDueDate()
           
 java.lang.String getException()
           
 long getId()
           
 java.lang.String getJobExecutorName()
          Deprecated. call getLockOwner() instead
 java.lang.String getLockOwner()
          name of the executor that locked this job.
 java.util.Date getLockTime()
          what time the executor locked this job.
 ProcessInstance getProcessInstance()
           
 int getRetries()
           
 TaskInstance getTaskInstance()
           
 Token getToken()
           
 int getVersion()
           
 boolean isExclusive()
          whether this job can be executed concurrently with other jobs for the same process instance.
 boolean isSuspended()
           
 void setConfiguration(java.lang.String configuration)
           
 void setDueDate(java.util.Date dueDate)
           
 void setException(java.lang.String exception)
           
 void setExclusive(boolean isExclusive)
           
 void setLockOwner(java.lang.String jobExecutorName)
           
 void setLockTime(java.util.Date aqcuireDate)
           
 void setProcessInstance(ProcessInstance processInstance)
           
 void setRetries(int retries)
           
 void setSuspended(boolean isSuspended)
           
 void setTaskInstance(TaskInstance taskInstance)
           
 void setToken(Token token)
           
 java.lang.String toStringLongFormat()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Job

public Job()

Job

public Job(Token token)
Method Detail

execute

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

toStringLongFormat

public java.lang.String toStringLongFormat()

getProcessInstance

public ProcessInstance getProcessInstance()

setProcessInstance

public void setProcessInstance(ProcessInstance processInstance)

getToken

public Token getToken()

setToken

public void setToken(Token token)

getId

public long getId()

getLockTime

public java.util.Date getLockTime()
what time the executor locked this job.


setLockTime

public void setLockTime(java.util.Date aqcuireDate)

getAqcuireDate

public java.util.Date getAqcuireDate()
Deprecated. call getLockTime() instead


getDueDate

public java.util.Date getDueDate()

setDueDate

public void setDueDate(java.util.Date dueDate)

getException

public java.lang.String getException()

setException

public void setException(java.lang.String exception)

isExclusive

public boolean isExclusive()
whether this job can be executed concurrently with other jobs for the same process instance.


setExclusive

public void setExclusive(boolean isExclusive)

getLockOwner

public java.lang.String getLockOwner()
name of the executor that locked this job.


setLockOwner

public void setLockOwner(java.lang.String jobExecutorName)

getJobExecutorName

public java.lang.String getJobExecutorName()
Deprecated. call getLockOwner() instead


getRetries

public int getRetries()

setRetries

public void setRetries(int retries)

getTaskInstance

public TaskInstance getTaskInstance()

setTaskInstance

public void setTaskInstance(TaskInstance taskInstance)

getConfiguration

public java.lang.String getConfiguration()

setConfiguration

public void setConfiguration(java.lang.String configuration)

isSuspended

public boolean isSuspended()

setSuspended

public void setSuspended(boolean isSuspended)

getVersion

public int getVersion()


Copyright © 2010 JBoss Community. All Rights Reserved.