public interface ITaskVotingStrategyManager
Modifier and Type | Method and Description |
---|---|
void |
executeStatusRecalculation(IURI principalURI,
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 |
getStrategyUpdateJobStatusDBField() |
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(IURI principalURI,
ITaskDefinition taskDefinition)
By a given task definition, change all votable task instances voting strategy in
the underlying engine storage.
|
void |
updateTaskVotingStrategy(IURI principalURI,
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(IURI principalURI, ITaskDefinition taskDefinition) throws PortalException
taskDefinition
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid updateTaskVotingStrategy(IURI principalURI, ITaskDefinition taskDefinition, boolean executeRecalculation) throws PortalException
taskDefinition
- - the task definitionexecuteRecalculation
- PortalException
- if any problem occurs during the operation executionvoid executeStatusRecalculation(IURI principalURI, ITaskDefinition taskDefinition) throws PortalException, SQLException
taskDefinition
- - the task definition 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 executionString getStrategyUpdateJobStatusDBField()