Class AbstractStateTaskService

java.lang.Object
fr.paris.lutece.plugins.workflow.modules.state.service.AbstractStateTaskService
Direct Known Subclasses:
ChangeStateTaskService, ChooseStateTaskService

public abstract class AbstractStateTaskService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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)
     
    boolean
    doChangeStateIfInState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int nIdCurrentState, int newState)
    Changes the state of a resource outside the processing of an action (daemons).
    fr.paris.lutece.util.ReferenceList
    getListStates(int nIdAction)
     
    fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow
    getResourceByHistory(int nIdHistory, int nIdWorkflow)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractStateTaskService

      public AbstractStateTaskService()
  • Method Details

    • getListStates

      public fr.paris.lutece.util.ReferenceList getListStates(int nIdAction)
    • getResourceByHistory

      public fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow getResourceByHistory(int nIdHistory, int nIdWorkflow)
    • doChangeState

      public void doChangeState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int newState)
    • doChangeStateIfInState

      public boolean doChangeStateIfInState(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, int nIdResource, String strResourceType, int nIdWorkflow, int nIdCurrentState, int newState)
      Changes the state of a resource outside the processing of an action (daemons). The resource is claimed in the database while it is still in its current state, so that it is changed once when the daemon runs on several instances. The automatic reflexive actions of the new state run after the claim is released, as they claim the resource themselves.
      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, false if the resource is claimed by another processing or is no longer in the current state