public class DefaultPlanItemView extends Object implements PlanItemView, CaseTaskView
Constructor and Description |
---|
DefaultPlanItemView(PlanItem planItemInternal,
TransitionData transitionData,
ViewCreators viewCreators,
EvaluationListeners evaluationListeners,
PersistenceListeners persistenceListeners,
SynchronizedLowLevelCmmnService synchronizedLowLevelCmmnService) |
public DefaultPlanItemView(PlanItem planItemInternal, TransitionData transitionData, ViewCreators viewCreators, EvaluationListeners evaluationListeners, PersistenceListeners persistenceListeners, SynchronizedLowLevelCmmnService synchronizedLowLevelCmmnService)
public String getId()
getId
in interface ElementView
public String getInstanceId()
getInstanceId
in interface ElementView
public int getInstanceIntId()
getInstanceIntId
in interface ElementView
public String getClientId()
getClientId
in interface ElementView
public String getState()
getState
in interface ElementView
public String getLastTransition()
getLastTransition
in interface ElementView
public boolean isCaseFileItem()
isCaseFileItem
in interface ElementView
true
if and only if this element represents a case file item.public CaseFileItemInstance getCaseFileItemInternal()
getCaseFileItemInternal
in interface ElementView
null
when called on an element of type plan item.public PlanItem getPlanItemInternal()
getPlanItemInternal
in interface ElementView
null
when called on an element of type case file item.public PlanItemView getParent()
getParent
in interface PlanItemView
null
if not applicable.public PlanItemView getCasePlanModel()
getCasePlanModel
in interface PlanItemView
null
if not applicable.public String getParentClientId()
getParentClientId
in interface PlanItemView
null
.public boolean isCaseTask()
isCaseTask
in interface PlanItemView
true
when called on a plan item of a case plan model that represents a case task. Returns
false
otherwise.public boolean isRootCaseTask()
isRootCaseTask
in interface PlanItemView
true
if the current case plan model was created from a case task and is of type root case.
Returns false
otherwise.public boolean isSubCaseTask()
isSubCaseTask
in interface PlanItemView
true
if the current case plan model was created from a case task and is of type sub-case.
Returns false
otherwise.public int getIndex()
PlanItemView
Synonym for ElementView.getInstanceIntId()
.
getIndex
in interface PlanItemView
public int getIndexInStage()
getIndexInStage
in interface PlanItemView
public int getInstanceCountInStage()
getInstanceCountInStage
in interface PlanItemView
public int getAvailableCount()
getAvailableCount
in interface PlanItemView
public int getAvailableCountInStage()
getAvailableCountInStage
in interface PlanItemView
public int getActiveCount()
getActiveCount
in interface PlanItemView
public int getActiveCountInStage()
getActiveCountInStage
in interface PlanItemView
public int getTriggeredCount()
getTriggeredCount
in interface PlanItemView
public int getTriggeredCountInStage()
getTriggeredCountInStage
in interface PlanItemView
public int getCompletedCount()
getCompletedCount
in interface PlanItemView
public int getCompletedCountInStage()
getCompletedCountInStage
in interface PlanItemView
public int getTerminatedCount()
getTerminatedCount
in interface PlanItemView
public int getTerminatedCountInStage()
getTerminatedCountInStage
in interface PlanItemView
public int getEnabledCount()
getEnabledCount
in interface PlanItemView
public int getEnabledCountInStage()
getEnabledCountInStage
in interface PlanItemView
public int getDisabledCount()
getDisabledCount
in interface PlanItemView
public int getDisabledCountInStage()
getDisabledCountInStage
in interface PlanItemView
public int getInstanceCount()
getInstanceCount
in interface PlanItemView
public String getName()
getName
in interface PlanItemView
public boolean isRequired()
isRequired
in interface PlanItemView
public boolean isRepetition()
isRepetition
in interface PlanItemView
public boolean isManualActivation()
isManualActivation
in interface PlanItemView
public boolean isCompletionNeutral()
isCompletionNeutral
in interface PlanItemView
public boolean isAutoComplete()
isAutoComplete
in interface PlanItemView
public boolean isBlocking()
isBlocking
in interface PlanItemView
public boolean isTerminal()
isTerminal
in interface PlanItemView
true
if and only if this plan item is in terminal state.public boolean isSemiTerminal()
isSemiTerminal
in interface PlanItemView
true
if and only if this plan item is in semi-terminal state.public boolean isPreActivation()
isPreActivation
in interface PlanItemView
true
if and only if this plan item is in any state before PlanItemState.ACTIVE
.public Set<String> getArmedEntrySentries()
getArmedEntrySentries
in interface PlanItemView
public Set<String> getDeferredEntrySentries()
getDeferredEntrySentries
in interface PlanItemView
public Set<String> getArmedExitSentries()
getArmedExitSentries
in interface PlanItemView
public Set<String> getDeferredExitSentries()
getDeferredExitSentries
in interface PlanItemView
public boolean isArmed()
isArmed
in interface PlanItemView
true
if the underlying plan item is armed. For a plan item with entry sentries this means that
the plan item is in state AVAILABLE and one or more of the plan item’s entry sentry (or sentries) are armed
(See PlanItemView.getArmedEntrySentries()
). For an event listener, armed means that invoking the OCCUR transition
on the event listener has an effect, i.e. it triggers a transition on one or more connected plan items.public Map<String,String> getCustomState()
PlanItemView
The plan item’s custom run-time state. The map is managed by modelers and extension implementers.
May be null
.
getCustomState
in interface PlanItemView
public int getAvailableChildrenCount()
getAvailableChildrenCount
in interface PlanItemView
public int getActiveChildrenCount()
getActiveChildrenCount
in interface PlanItemView
public int getChildInstanceCount()
getChildInstanceCount
in interface PlanItemView
public int getCompletedChildrenCount()
getCompletedChildrenCount
in interface PlanItemView
public int getDisabledChildrenCount()
getDisabledChildrenCount
in interface PlanItemView
public int getEnabledChildrenCount()
getEnabledChildrenCount
in interface PlanItemView
public int getTerminatedChildrenCount()
getTerminatedChildrenCount
in interface PlanItemView
public int getTriggeredChildrenCount()
getTriggeredChildrenCount
in interface PlanItemView
public boolean isWaitingOnChildren()
isWaitingOnChildren
in interface PlanItemView
true
if this stage plan item is waiting on its children in order to complete.
Return `false> otherwise or when called on a non stage plan item.public boolean waitingOnChildren(boolean stageAutoComplete)
waitingOnChildren
in interface PlanItemView
true
if this stage plan item is waiting on its children in order to complete (under the scenario that the stage’s
auto-complete property has the value as passed in the method parameter).
Return `false> otherwise or when called on a non stage plan item.public PlanItemView getOwnerCasePlanModel()
CaseTaskView
Applies to plan items of a case plan model that has been created as a result of a case task.
getOwnerCasePlanModel
in interface CaseTaskView
null
for top level Cases (i.e. cases not started from a Case task).public PlanItemView getParentCasePlanModel()
CaseTaskView
Applies to plan items of a case plan model that has been created as a result of a case task.
getParentCasePlanModel
in interface CaseTaskView
null
for any other type of case.public PlanItemView getTopMostCasePlanModel()
CaseTaskView
Applies to plan items of a case plan model that has been created as a result of a case task.
getTopMostCasePlanModel
in interface CaseTaskView
public Map<String,PlanItemView> getPlanItems()
CaseTaskView
Applies to plan items of type CaseTask.
getPlanItems
in interface CaseTaskView
null
for case tasks that have not yet been started or
for plan items that are not of type case task.public PlanItemView getTargetCasePlanModel()
CaseTaskView
Applies to plan items of type CaseTask.
getTargetCasePlanModel
in interface CaseTaskView
null
for case tasks that have not yet been started.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.