public class CasePlanModel extends Stage
A 'Stage' plan item with its associated Stage (TPlanItemDefinition
) representing
the top-most stage (the casePlanModel
) of the case.
<p>Do not rename this class. The name is part of public API. Moving the class to a different package, however, is possible.</p>
Constructor and Description |
---|
CasePlanModel(StateModel stateModel,
String clientId,
TStage tStage,
String parentClientId)
Construct a
casePlanModel stage. |
Modifier and Type | Method and Description |
---|---|
void |
applyVisitor(PlanItemVisitor visitor,
TransitionData transitionData)
Apply a visitor to this stage (GOF visitor pattern).
|
void |
applyVisitor(PlannableItemVisitor visitor,
TransitionData transitionData)
Apply a plannable item visitor to this stage if it is active.
|
CasePlanModel |
getCasePlanModel()
Get the
casePlanModel from the parent. |
Map<String,String> |
getClientProperties() |
String |
getParentClientId() |
String |
getParentInstanceId() |
String |
getPlanItemTypeShort() |
StateModel |
getStateModel() |
Integer |
getTriggerLimit() |
boolean |
isCaseTask() |
Boolean |
isRepetitionEnabled() |
boolean |
isRootCaseTask() |
boolean |
isSubCaseTask() |
void |
restoreFromExternalState(String id,
CasePlanModelData externalState,
boolean inMigration)
Restore this `PlanItem`'s state from the passed `externalState` object.
|
createPlanItemAction, evaluateApplicabilityRules, evaluateEntryCriteria, evaluateExitCriteria, evaluateStageAutoComplete, findPlanItem, getActiveChildrenCount, getAvailableChildrenCount, getChildInstanceCount, getChildren, getCompletedChildrenCount, getDisabledChildrenCount, getEnabledChildrenCount, getTerminatedChildrenCount, getTriggeredChildrenCount, getTStage, handleDiscretionaryItemPlanning, isAutoComplete, isStageComplete, isWaitingOnChildren, isWaitingOnChildren, needsCompletion, startStage
getActionDescription, getActionName, getActionName, getActivationTime, getActiveCount, getActiveCountInStage, getArmedEntrySentries, getArmedExitSentries, getAvailableCount, getAvailableCountInStage, getClientId, getClientRef, getCompletedCount, getCompletedCountInStage, getCustomAttribute, getCustomState, getCustomState, getDeferredEntrySentries, getDeferredExitSentries, getDescription, getDisabledCount, getDisabledCountInStage, getEnabledCount, getEnabledCountInStage, getExtensionType, getId, getIndexInStage, getInstanceCount, getInstanceCountInStage, getInstanceId, getInstanceIntId, getLastPlanItemTransition, getName, getName, getName, getNewPlanItemData, getParent, getPlannableItem, getState, getTerminatedCount, getTerminatedCountInStage, getTPlanItemDefinition, getTriggeredCount, getTriggeredCountInStage, getTriggeredExitSentries, handlePlanItemTransition, isActionHidden, isArmed, isBlocking, isCompletionNeutral, isManualActivation, isNonBlockingComplete, isOfSameHierarchy, isPending, isPreActivation, isRepetition, isRequired, isSemiTerminal, isTerminal, isTriggeredExitSentry, setClientId, setCustomState, setCustomState, setState, toString
public CasePlanModel(StateModel stateModel, String clientId, TStage tStage, String parentClientId)
Construct a casePlanModel
stage.
stateModel
- the state modelclientId
- the client idtStage
- the stageparentClientId
- the parent client idpublic String getParentInstanceId()
getParentInstanceId
in class PlanItem
public void restoreFromExternalState(String id, CasePlanModelData externalState, boolean inMigration)
PlanItem
restoreFromExternalState
in class Stage
id
- the instance idexternalState
- the external statepublic Boolean isRepetitionEnabled()
public Integer getTriggerLimit()
public CasePlanModel getCasePlanModel()
PlanItem
Get the casePlanModel
from the parent. Climbs up the parent chain
to the root (casePlanModel
) and returns the root.
getCasePlanModel
in class PlanItem
public final StateModel getStateModel()
public String getPlanItemTypeShort()
getPlanItemTypeShort
in class Stage
public final String getParentClientId()
null
for top-level cases. Contains the client Id of the
case’s parent case for cases representing case tasks.public boolean isCaseTask()
true
if this case was created as a result of a case task. Return false
otherwise.public boolean isSubCaseTask()
true
if this case plan model was created from a case task and is of type sub-case.
Returns false
otherwise.public boolean isRootCaseTask()
true
if this case plan model was created from a case task and is of type root case.
Returns false
otherwise.public void applyVisitor(PlanItemVisitor visitor, TransitionData transitionData)
Stage
Apply a visitor to this stage (GOF visitor pattern).
applyVisitor
in class Stage
visitor
- the plan item visitortransitionData
- optional evaluation context.public void applyVisitor(PlannableItemVisitor visitor, TransitionData transitionData)
Stage
Apply a plannable item visitor to this stage if it is active. This runs through the planning table and applies the visitor to the plannable items in the planning table in turn. The method then drills down into the stage’s children.
applyVisitor
in class Stage
visitor
- the plannable item visitor to apply.transitionData
- optional evaluation context.Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.