Interface IChooseStateTaskService
- All Known Implementing Classes:
ChooseStateTaskService
public interface IChooseStateTaskService
Service for IChooseStateTask
-
Method Summary
Modifier and TypeMethodDescriptionvoidchooseNewState(int nIdResource, String strResourceType, fr.paris.lutece.plugins.workflowcore.service.task.ITask task, ChooseStateTaskConfig config, int nIdWorkflow, int oldState) Change the state of the given resource if the control is satisfied.getController(ChooseStateTaskConfig config) Get the Controller of the configdefault List<IChooseStateController>Get the list of implementedIChooseStateControllerfr.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
-
getControllerList
Get the list of implementedIChooseStateController- Returns:
-
loadConfig
Load config of task.- Parameters:
task-- Returns:
-
chooseNewState
void chooseNewState(int nIdResource, String strResourceType, fr.paris.lutece.plugins.workflowcore.service.task.ITask task, ChooseStateTaskConfig config, int nIdWorkflow, int oldState) Change the state of the given resource if the control is satisfied.- Parameters:
nIdResource-strResourceType-task-config-nIdWorkflow-oldState-
-
getResourceByHistory
fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow getResourceByHistory(int nIdHistory, int nIdWorkflow) Load a resource by it History.- Parameters:
nIdHistory-nIdWorkflow-- Returns:
-
getController
Get the Controller of the config- Parameters:
config-- Returns:
-