Class AbstractChangePlanItemInstanceStateOperation

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AbstractMovePlanItemInstanceToTerminalStateOperation, ActivateAsyncPlanItemInstanceOperation, AsyncLeaveActivePlanItemInstanceOperation, ChangePlanItemInstanceToAvailableOperation, CreatePlanItemInstanceOperation, CreateRepeatedPlanItemInstanceOperation, DisablePlanItemInstanceOperation, DismissPlanItemInstanceOperation, EnablePlanItemInstanceOperation, InitiatePlanItemInstanceOperation, ReactivatePlanItemInstanceOperation, StartPlanItemInstanceOperation

public abstract class AbstractChangePlanItemInstanceStateOperation extends AbstractPlanItemInstanceOperation
Author:
Joram Barrez
  • Constructor Details

  • Method Details

    • run

      public void run()
    • isStateNotChanged

      public boolean isStateNotChanged(String oldState, String newState)
    • internalExecute

      protected abstract void internalExecute()
    • createPlanItemLifeCycleEvent

      protected PlanItemLifeCycleEvent createPlanItemLifeCycleEvent()
    • getNewState

      public abstract String getNewState()
    • getLifeCycleTransition

      public abstract String getLifeCycleTransition()
    • abortOperationIfNewStateEqualsOldState

      public boolean abortOperationIfNewStateEqualsOldState()
      Overwrite this default implemented hook, if the operation should be aborted on a void transition which might be the case, if the old and new state will be the same.
      Returns:
      true, if this operation should be aborted, if the new plan item state is the same as the old one, false, if the operation is to be executed in any case
    • getOperationName

      public abstract String getOperationName()
    • toString

      public String toString()
      Overrides:
      toString in class Object