Interface IChooseStateTaskService
-
- All Known Implementing Classes:
ChooseStateTaskService
public interface IChooseStateTaskServiceService for IChooseStateTask
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidchooseNewState(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.IChooseStateControllergetController(ChooseStateTaskConfig config)Get the Controller of the configdefault List<IChooseStateController>getControllerList()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.ChooseStateTaskConfigloadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)Load config of task.
-
-
-
Method Detail
-
getListStates
fr.paris.lutece.util.ReferenceList getListStates(int nIdAction)
Get the list of states- Parameters:
nIdAction- the id action- Returns:
- a ReferenceList
-
getControllerList
default List<IChooseStateController> getControllerList()
Get the list of implementedIChooseStateController- Returns:
-
loadConfig
ChooseStateTaskConfig loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
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
IChooseStateController getController(ChooseStateTaskConfig config)
Get the Controller of the config- Parameters:
config-- Returns:
-
-