org.alfresco.repo.workflow.jbpm
Class AlfrescoTimer

java.lang.Object
  extended by org.jbpm.job.Job
      extended by org.jbpm.job.Timer
          extended by org.alfresco.repo.workflow.jbpm.AlfrescoTimer
All Implemented Interfaces:
java.io.Serializable

public class AlfrescoTimer
extends org.jbpm.job.Timer

Extended JBPM Timer that provides Alfresco context. NOTE: The action triggered by the timer is executed as the user assigned to the task associated with the timer. If not associated with a task, the timer is executed unauthenticated.

See Also:
Serialized Form

Constructor Summary
AlfrescoTimer()
          Construct
AlfrescoTimer(org.jbpm.graph.exe.Token token)
          Construct
 
Method Summary
 boolean execute(org.jbpm.JbpmContext jbpmContext)
          
 
Methods inherited from class org.jbpm.job.Timer
formatDueDate, getAction, getGraphElement, getName, getRepeat, getTransitionName, setAction, setGraphElement, setName, setRepeat, setTransitionName, toString
 
Methods inherited from class org.jbpm.job.Job
getAqcuireDate, getConfiguration, getDueDate, getException, getId, getJobExecutorName, getLockOwner, getLockTime, getProcessInstance, getRetries, getTaskInstance, getToken, getVersion, isExclusive, isSuspended, setConfiguration, setDueDate, setException, setExclusive, setLockOwner, setLockTime, setProcessInstance, setRetries, setSuspended, setTaskInstance, setToken, toStringLongFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlfrescoTimer

public AlfrescoTimer()
Construct


AlfrescoTimer

public AlfrescoTimer(org.jbpm.graph.exe.Token token)
Construct

Parameters:
token -
Method Detail

execute

public boolean execute(org.jbpm.JbpmContext jbpmContext)
                throws java.lang.Exception

Overrides:
execute in class org.jbpm.job.Timer
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.