public interface IProcessQueueManager
Modifier and Type | Method and Description |
---|---|
IQueueStatistics |
getQueueStatistics()
Retrieves the current situation statistics of the queue.
|
IQueueTaskProcess |
getTaskProcess(String processId)
Retrieves the queue item of represented by the processId.
|
Collection<IQueueTaskProcess> |
getTaskProcessByOwnerId(String ownerId)
Returns the processes of a given owner.
|
void |
reprocess(String processId)
Triggers the process to be retried.
|
IQueueTaskProcess |
schedule(IQueueTask task,
QueueTaskScheduleConfig taskScheduleConfig)
Schedules the execution of the given task.
|
IQueueTaskProcess schedule(IQueueTask task, QueueTaskScheduleConfig taskScheduleConfig) throws PortalException
This operation uses the current transactional context. The task will only be available for execution after the transaction is commited. If the transaction is rolled back the scheduling will also be aborted.
task
- the task to be executed.taskScheduleConfig
- contains the configuration for the execution
schedule.PortalException
- if the task could not be scheduled.IQueueTaskProcess getTaskProcess(String processId) throws PortalException
processId
- PortalException
Collection<IQueueTaskProcess> getTaskProcessByOwnerId(String ownerId) throws PortalException
ownerId
- the owner identifier.PortalException
IQueueStatistics getQueueStatistics() throws PortalException
PortalException
void reprocess(String processId) throws PortalException
processId
- id of the process to be reprocessed.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.