public interface ITaskVotingStrategyManager
Modifier and Type | Method and Description |
---|---|
void |
executeStatusRecalculation(ITaskDefinition taskDefinition)
By a given task definition, execute status recalculation for all votable task
instances based on voting strategy The operation is asynchronous, since it can last
very long.
|
String |
getType() |
void |
initialize()
Activation of service.
|
boolean |
isEnabled() |
void |
stopTasksVotingStrategyUpdate(ITaskDefinition taskDefinition)
Stops the task strategy update operation on the underlying engine storage if there
is already a running one.
|
void |
updateTaskVotingStrategy(ITaskDefinition taskDefinition)
By a given task definition, change all votable task instances voting strategy in
the underlying engine storage.
|
void |
updateTaskVotingStrategy(ITaskDefinition taskDefinition,
boolean executeRecalculation)
By a given task definition, change all votable task instances voting strategy in
the underlying engine storage, and execute status recalculation.
|
void updateTaskVotingStrategy(ITaskDefinition taskDefinition) throws PortalException
taskDefinition
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid updateTaskVotingStrategy(ITaskDefinition taskDefinition, boolean executeRecalculation) throws PortalException
taskDefinition
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid executeStatusRecalculation(ITaskDefinition taskDefinition) throws PortalException, SQLException
taskDefinition
- - the task definitionexecuteRecalculation
- - indication to trigger or not status recalculation based on task voting
strategyPortalException
- if any problem occurs during the operation executionSQLException
String getType()
boolean isEnabled()
void initialize() throws Exception
Exception
- - if any exception occurs during service initializationvoid stopTasksVotingStrategyUpdate(ITaskDefinition taskDefinition) throws PortalException
taskDef
- - the task definitionPortalException
- if any problem occurs during the operation execution