Package es.caib.bpm.servei
Class BpmJobExecutorBaseProxy
- java.lang.Object
-
- es.caib.bpm.servei.BpmJobExecutorBaseProxy
-
- All Implemented Interfaces:
es.caib.bpm.servei.BpmJobExecutor
public class BpmJobExecutorBaseProxy extends Object implements es.caib.bpm.servei.BpmJobExecutor
Spring Service base class for
see es.caib.bpm.servei.BpmJobExecutores.caib.bpm.servei.BpmJobExecutor
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description BpmJobExecutorBaseProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anotateFailure(long id, Exception e)
void
executeJob(long id)
com.soffid.iam.bpm.service.BpmJobExecutor
getBpmJobExecutor()
Gets reference tobpmJobExecutor
.List
getJobs(String lockOwner)
Date
getNextDueDate(String lockOwner)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.void
indexPendingProcesses()
boolean
lockJob(long id, String lockOwner)
void
setBpmJobExecutor(com.soffid.iam.bpm.service.BpmJobExecutor bpmJobExecutor)
Sets reference tobpmJobExecutor
.void
unlockOverdueJobs(Date threshold)
-
-
-
Method Detail
-
setBpmJobExecutor
public void setBpmJobExecutor(com.soffid.iam.bpm.service.BpmJobExecutor bpmJobExecutor)
Sets reference tobpmJobExecutor
.
-
getBpmJobExecutor
public com.soffid.iam.bpm.service.BpmJobExecutor getBpmJobExecutor()
Gets reference tobpmJobExecutor
.
-
lockJob
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public boolean lockJob(long id, String lockOwner) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException, Exception
- Specified by:
lockJob
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
Exception
-
getNextDueDate
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public Date getNextDueDate(String lockOwner) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getNextDueDate
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getJobs
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public List getJobs(String lockOwner) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getJobs
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
anotateFailure
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public void anotateFailure(long id, Exception e) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
anotateFailure
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
executeJob
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public void executeJob(long id) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException, Exception
- Specified by:
executeJob
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
Exception
-
indexPendingProcesses
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public void indexPendingProcesses() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
indexPendingProcesses
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
unlockOverdueJobs
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public void unlockOverdueJobs(Date threshold) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
unlockOverdueJobs
in interfacees.caib.bpm.servei.BpmJobExecutor
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-