Interface IChangeStateTaskService

All Known Implementing Classes:
ChangeStateTaskService

public interface IChangeStateTaskService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doChangeState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int newState)
    Change State
    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)
    fr.paris.lutece.util.ReferenceList
    getListStates(int nIdAction)
    Get the list of states
    fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow
    getResourceByHistory(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

      ChangeStateTaskConfig loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
      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 task
      nIdResource - the resource id
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      nIdCurrentState - the state the resource must still be in
      newState - the new state id
      Returns:
      true if the state has been changed