Class AbstractChangePlanItemInstanceStateOperation

    • Constructor Detail

      • AbstractChangePlanItemInstanceStateOperation

        public AbstractChangePlanItemInstanceStateOperation​(CommandContext commandContext,
                                                            PlanItemInstanceEntity planItemInstanceEntity)
    • Method Detail

      • run

        public void run()
      • isStateNotChanged

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

        protected abstract void internalExecute()
      • 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()