org.jbpm.ejb.impl
Class TimerEntityBean

java.lang.Object
  extended by org.jbpm.ejb.impl.TimerEntityBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean, javax.ejb.TimedObject

public abstract class TimerEntityBean
extends java.lang.Object
implements javax.ejb.EntityBean, javax.ejb.TimedObject

Entity bean that interacts with the EJB timer service to schedule jBPM timers.

Environment

The environment entries and resources available for customization are summarized in the table below.

Name Type Description
ejb/LocalCommandServiceBean EJB Reference Link to the local session bean that executes timers on a separate jBPM context.

Author:
Tom Baeyens, Alejandro Guizar, Fady Matar
See Also:
Serialized Form

Constructor Summary
TimerEntityBean()
           
 
Method Summary
 void cancelTimer(org.jbpm.job.Timer timer)
           
 void cancelTimersByName(java.lang.String timerName, org.jbpm.graph.exe.Token token)
           
 void cancelTimersForProcessInstance(org.jbpm.graph.exe.ProcessInstance processInstance)
           
 void createTimer(org.jbpm.job.Timer timer)
           
 void ejbActivate()
           
 java.lang.Long ejbCreate()
          No ejbCreate operation is allowed.
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
           
 void ejbRemove()
           
 void ejbStore()
           
 void ejbTimeout(javax.ejb.Timer ejbTimer)
           
abstract  java.lang.String getDiscriminator()
           
abstract  java.lang.String getName()
           
abstract  java.lang.Long getProcessInstanceId()
           
abstract  java.lang.Long getTimerId()
           
abstract  java.lang.Long getTokenId()
           
abstract  void setDiscriminator(java.lang.String discriminator)
           
 void setEntityContext(javax.ejb.EntityContext entityContext)
           
abstract  void setName(java.lang.String name)
           
abstract  void setProcessInstanceId(java.lang.Long processInstanceId)
           
abstract  void setTimerId(java.lang.Long timerId)
           
abstract  void setTokenId(java.lang.Long tokenId)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerEntityBean

public TimerEntityBean()
Method Detail

getTimerId

public abstract java.lang.Long getTimerId()

setTimerId

public abstract void setTimerId(java.lang.Long timerId)

getName

public abstract java.lang.String getName()

setName

public abstract void setName(java.lang.String name)

getTokenId

public abstract java.lang.Long getTokenId()

setTokenId

public abstract void setTokenId(java.lang.Long tokenId)

getProcessInstanceId

public abstract java.lang.Long getProcessInstanceId()

setProcessInstanceId

public abstract void setProcessInstanceId(java.lang.Long processInstanceId)

getDiscriminator

public abstract java.lang.String getDiscriminator()

setDiscriminator

public abstract void setDiscriminator(java.lang.String discriminator)

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

setEntityContext

public void setEntityContext(javax.ejb.EntityContext entityContext)
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

ejbCreate

public java.lang.Long ejbCreate()
                         throws javax.ejb.CreateException
No ejbCreate operation is allowed. One approach of ensuring that an EJB is set as read-only.

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate()

ejbTimeout

public void ejbTimeout(javax.ejb.Timer ejbTimer)
Specified by:
ejbTimeout in interface javax.ejb.TimedObject

createTimer

public void createTimer(org.jbpm.job.Timer timer)

cancelTimer

public void cancelTimer(org.jbpm.job.Timer timer)

cancelTimersByName

public void cancelTimersByName(java.lang.String timerName,
                               org.jbpm.graph.exe.Token token)

cancelTimersForProcessInstance

public void cancelTimersForProcessInstance(org.jbpm.graph.exe.ProcessInstance processInstance)


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