Class AbstractChangePlanItemInstanceStateOperation
java.lang.Object
org.flowable.cmmn.engine.impl.agenda.operation.CmmnOperation
org.flowable.cmmn.engine.impl.agenda.operation.AbstractPlanItemInstanceOperation
org.flowable.cmmn.engine.impl.agenda.operation.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
-
Field Summary
Fields inherited from class org.flowable.cmmn.engine.impl.agenda.operation.AbstractPlanItemInstanceOperation
planItemInstanceEntity
Fields inherited from class org.flowable.cmmn.engine.impl.agenda.operation.CmmnOperation
commandContext, isNoop
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractChangePlanItemInstanceStateOperation
(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.protected PlanItemLifeCycleEvent
abstract String
abstract String
abstract String
protected abstract void
boolean
isStateNotChanged
(String oldState, String newState) void
run()
toString()
Methods inherited from class org.flowable.cmmn.engine.impl.agenda.operation.AbstractPlanItemInstanceOperation
getCaseInstanceId, getCurrentTime, getPlanItemInstanceEntity, removeSentryRelatedData, setPlanItemInstanceEntity
Methods inherited from class org.flowable.cmmn.engine.impl.agenda.operation.CmmnOperation
childPlanItemInstanceForPlanItemExists, createPlanItemInstanceIfNeeded, createPlanItemInstancesForNewOrReactivatedStage, evaluateReactivationCondition, evaluateReactivationRule, getCaseInstance, getPlanItemCreationOrReactivationType, getPlanModel, getStage, isEventListenerWithAvailableCondition, isNoop, isStage, markAsNoop, setRepetitionCounter
-
Constructor Details
-
AbstractChangePlanItemInstanceStateOperation
public AbstractChangePlanItemInstanceStateOperation(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity)
-
-
Method Details
-
run
public void run() -
isStateNotChanged
-
internalExecute
protected abstract void internalExecute() -
createPlanItemLifeCycleEvent
-
getNewState
-
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
-
toString
-