org.jbpm.job
Class Job

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

public abstract class Job
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Job()
           
Job(Token token)
           
 
Method Summary
abstract  boolean execute(JbpmContext jbpmContext)
           
 Date getAqcuireDate()
          Deprecated. call getLockTime() instead
 String getConfiguration()
           
 Date getDueDate()
           
 String getException()
           
 long getId()
           
 String getJobExecutorName()
          Deprecated. call getLockOwner() instead
 String getLockOwner()
          name of the executor that locked this job.
 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(String configuration)
           
 void setDueDate(Date dueDate)
           
 void setException(String exception)
           
 void setExclusive(boolean isExclusive)
           
 void setLockOwner(String lockOwner)
           
 void setLockTime(Date lockTime)
           
 void setProcessInstance(ProcessInstance processInstance)
           
 void setRetries(int retries)
           
 void setSuspended(boolean isSuspended)
           
 void setTaskInstance(TaskInstance taskInstance)
           
 void setToken(Token token)
           
 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 Exception
Throws:
Exception

toStringLongFormat

public 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 Date getLockTime()
what time the executor locked this job.


setLockTime

public void setLockTime(Date lockTime)

getAqcuireDate

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


getDueDate

public Date getDueDate()

setDueDate

public void setDueDate(Date dueDate)

getException

public String getException()

setException

public void setException(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 String getLockOwner()
name of the executor that locked this job.


setLockOwner

public void setLockOwner(String lockOwner)

getJobExecutorName

public 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 String getConfiguration()

setConfiguration

public void setConfiguration(String configuration)

isSuspended

public boolean isSuspended()

setSuspended

public void setSuspended(boolean isSuspended)

getVersion

public int getVersion()


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