org.jbpm.env.session
Class Timer

java.lang.Object
  extended by org.jbpm.env.session.Job<java.lang.Boolean>
      extended by org.jbpm.env.session.Timer
All Implemented Interfaces:
java.io.Serializable, Command<java.lang.Boolean>

public class Timer
extends Job<java.lang.Boolean>

Author:
Tom Baeyens, Pascal Verdage, Alejandro Guizar
See Also:
Serialized Form

Field Summary
protected  ObjectReference<Activity> activityReference
           
static java.lang.String EVENT_TIMER
           
protected  java.lang.String name
           
protected  java.lang.String repeat
           
 
Fields inherited from class org.jbpm.env.session.Job
dbid, dbversion, dueDate, exception, execution, isExclusive, isSuspended, lockExpirationTime, lockOwner, processInstance, retries
 
Constructor Summary
protected Timer()
           
  Timer(ExecutionImpl execution)
           
  Timer(java.lang.String name, ExecutionImpl execution)
           
 
Method Summary
 java.lang.Boolean execute(Environment environment)
           
 ObjectReference<Activity> getActivityReference()
           
static java.text.DateFormat getDateFormat()
           
 java.lang.String getName()
           
 java.lang.String getRepeat()
           
 void setActivityReference(ObjectReference<Activity> activityReference)
           
 void setName(java.lang.String name)
           
 void setRepeat(java.lang.String repeat)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jbpm.env.session.Job
getDbid, getDueDate, getException, getExecution, getLockExpirationTime, getLockOwner, getProcessInstance, getRetries, isExclusive, isSuspended, setDbid, setDueDate, setException, setExclusive, setLockExpirationTime, setLockOwner, setRetries, setSuspended
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

repeat

protected java.lang.String repeat

activityReference

protected ObjectReference<Activity> activityReference

EVENT_TIMER

public static final java.lang.String EVENT_TIMER
See Also:
Constant Field Values
Constructor Detail

Timer

protected Timer()

Timer

public Timer(ExecutionImpl execution)

Timer

public Timer(java.lang.String name,
             ExecutionImpl execution)
Method Detail

execute

public java.lang.Boolean execute(Environment environment)
                          throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class Job<java.lang.Boolean>

getDateFormat

public static java.text.DateFormat getDateFormat()

getRepeat

public java.lang.String getRepeat()

setRepeat

public void setRepeat(java.lang.String repeat)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getActivityReference

public ObjectReference<Activity> getActivityReference()

setActivityReference

public void setActivityReference(ObjectReference<Activity> activityReference)