Package com.soffid.iam.bpm.service
Interface BpmJobExecutor
-
public interface BpmJobExecutor
Service BpmJobExecutor
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
anotateFailure(long id, Exception e)
Operation anotateFailurevoid
executeJob(long id)
Operation executeJobList
getJobs(String lockOwner)
Operation getJobsDate
getNextDueDate(String lockOwner)
Operation getNextDueDatevoid
indexPendingProcesses()
Operation indexPendingProcessesboolean
lockJob(long id, String lockOwner)
Operation lockJobvoid
unlockOverdueJobs(Date threshold)
Operation unlockOverdueJobs
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
lockJob
boolean lockJob(long id, String lockOwner) throws InternalErrorException, InternalErrorException, Exception
Operation lockJob- Parameters:
id
-lockOwner
-- Returns:
- Throws:
InternalErrorException
Exception
-
getNextDueDate
Date getNextDueDate(String lockOwner) throws InternalErrorException, InternalErrorException
Operation getNextDueDate- Parameters:
lockOwner
-- Returns:
- Throws:
InternalErrorException
-
getJobs
List getJobs(String lockOwner) throws InternalErrorException, InternalErrorException
Operation getJobs- Parameters:
lockOwner
-- Returns:
- Throws:
InternalErrorException
-
anotateFailure
void anotateFailure(long id, Exception e) throws InternalErrorException, InternalErrorException
Operation anotateFailure- Parameters:
id
-e
-- Throws:
InternalErrorException
-
executeJob
void executeJob(long id) throws InternalErrorException, InternalErrorException, Exception
Operation executeJob- Parameters:
id
-- Throws:
InternalErrorException
Exception
-
indexPendingProcesses
void indexPendingProcesses() throws InternalErrorException, InternalErrorException
Operation indexPendingProcesses- Throws:
InternalErrorException
-
unlockOverdueJobs
void unlockOverdueJobs(Date threshold) throws InternalErrorException, InternalErrorException
Operation unlockOverdueJobs- Parameters:
threshold
-- Throws:
InternalErrorException
-
-