es.caib.bpm.beans
Class BPMJobExecutorBean

java.lang.Object
  extended by es.caib.bpm.beans.BPMJobExecutorBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class BPMJobExecutorBean
extends java.lang.Object
implements javax.ejb.SessionBean

See Also:
Serialized Form

Constructor Summary
BPMJobExecutorBean()
           
 
Method Summary
 void anotateFailure(long id, java.lang.Exception e)
           
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 java.lang.Exception executeJob(long id)
           
 java.util.List getJobs(java.lang.String lockOwner)
           
 java.util.Date getNextDueDate(java.lang.String lockOwner)
           
 void indexPendingProcesses()
           
 void setSessionContext(javax.ejb.SessionContext arg0)
           
 void unlockOverdueJobs(java.util.Date threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPMJobExecutorBean

public BPMJobExecutorBean()
Method Detail

anotateFailure

public void anotateFailure(long id,
                           java.lang.Exception e)

executeJob

public java.lang.Exception executeJob(long id)

getNextDueDate

public java.util.Date getNextDueDate(java.lang.String lockOwner)

ejbActivate

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

ejbPassivate

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

ejbRemove

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

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

getJobs

public java.util.List getJobs(java.lang.String lockOwner)

unlockOverdueJobs

public void unlockOverdueJobs(java.util.Date threshold)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext arg0)
                       throws javax.ejb.EJBException,
                              java.rmi.RemoteException
Specified by:
setSessionContext in interface javax.ejb.SessionBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

indexPendingProcesses

public void indexPendingProcesses()


Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.