Interface IChangeStateTaskService
- All Known Implementing Classes:
ChangeStateTaskService
public interface IChangeStateTaskService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoChangeState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int newState) Change StatebooleandoChangeStateIfInState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int nIdCurrentState, int newState) Change the state of a resource still in a given state, claiming it in the database (daemons running on several instances)fr.paris.lutece.util.ReferenceListgetListStates(int nIdAction) Get the list of statesfr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflowgetResourceByHistory(int nIdHistory, int nIdWorkflow) Load a resource by it History.loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task) Load config of task.
-
Method Details
-
getListStates
fr.paris.lutece.util.ReferenceList getListStates(int nIdAction) Get the list of states- Parameters:
nIdAction- the id action- Returns:
- a ReferenceList
-
loadConfig
Load config of task.- Parameters:
task-- Returns:
-
getResourceByHistory
fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow getResourceByHistory(int nIdHistory, int nIdWorkflow) Load a resource by it History.- Parameters:
nIdHistory-nIdWorkflow-- Returns:
-
doChangeState
void doChangeState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int newState) Change State- Parameters:
task-nIdResource-strResourceType-nIdWorkflow-newState-
-
doChangeStateIfInState
boolean doChangeStateIfInState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int nIdCurrentState, int newState) Change the state of a resource still in a given state, claiming it in the database (daemons running on several instances)- Parameters:
task- the tasknIdResource- the resource idstrResourceType- the resource typenIdWorkflow- the workflow idnIdCurrentState- the state the resource must still be innewState- the new state id- Returns:
- true if the state has been changed
-