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 ElementViewpublic String getInstanceId()
getInstanceId in interface ElementViewpublic int getInstanceIntId()
getInstanceIntId in interface ElementViewpublic String getClientId()
getClientId in interface ElementViewpublic String getState()
getState in interface ElementViewpublic String getLastTransition()
getLastTransition in interface ElementViewpublic boolean isCaseFileItem()
isCaseFileItem in interface ElementViewtrue if and only if this element represents a case file item.public CaseFileItemInstance getCaseFileItemInternal()
getCaseFileItemInternal in interface ElementViewnull when called on an element of type plan item.public PlanItem getPlanItemInternal()
getPlanItemInternal in interface ElementViewnull when called on an element of type case file item.public PlanItemView getParent()
getParent in interface PlanItemViewnull if not applicable.public PlanItemView getCasePlanModel()
getCasePlanModel in interface PlanItemViewnull if not applicable.public String getParentClientId()
getParentClientId in interface PlanItemViewnull.public boolean isCaseTask()
isCaseTask in interface PlanItemViewtrue 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 PlanItemViewtrue 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 PlanItemViewtrue if the current case plan model was created from a case task and is of type sub-case.
Returns false otherwise.public int getIndex()
PlanItemViewSynonym for ElementView.getInstanceIntId().
getIndex in interface PlanItemViewpublic int getIndexInStage()
getIndexInStage in interface PlanItemViewpublic int getInstanceCountInStage()
getInstanceCountInStage in interface PlanItemViewpublic int getAvailableCount()
getAvailableCount in interface PlanItemViewpublic int getAvailableCountInStage()
getAvailableCountInStage in interface PlanItemViewpublic int getActiveCount()
getActiveCount in interface PlanItemViewpublic int getActiveCountInStage()
getActiveCountInStage in interface PlanItemViewpublic int getTriggeredCount()
getTriggeredCount in interface PlanItemViewpublic int getTriggeredCountInStage()
getTriggeredCountInStage in interface PlanItemViewpublic int getCompletedCount()
getCompletedCount in interface PlanItemViewpublic int getCompletedCountInStage()
getCompletedCountInStage in interface PlanItemViewpublic int getTerminatedCount()
getTerminatedCount in interface PlanItemViewpublic int getTerminatedCountInStage()
getTerminatedCountInStage in interface PlanItemViewpublic int getEnabledCount()
getEnabledCount in interface PlanItemViewpublic int getEnabledCountInStage()
getEnabledCountInStage in interface PlanItemViewpublic int getDisabledCount()
getDisabledCount in interface PlanItemViewpublic int getDisabledCountInStage()
getDisabledCountInStage in interface PlanItemViewpublic int getInstanceCount()
getInstanceCount in interface PlanItemViewpublic String getName()
getName in interface PlanItemViewpublic boolean isRequired()
isRequired in interface PlanItemViewpublic boolean isRepetition()
isRepetition in interface PlanItemViewpublic boolean isManualActivation()
isManualActivation in interface PlanItemViewpublic boolean isCompletionNeutral()
isCompletionNeutral in interface PlanItemViewpublic boolean isAutoComplete()
isAutoComplete in interface PlanItemViewpublic boolean isBlocking()
isBlocking in interface PlanItemViewpublic boolean isTerminal()
isTerminal in interface PlanItemViewtrue if and only if this plan item is in terminal state.public boolean isSemiTerminal()
isSemiTerminal in interface PlanItemViewtrue if and only if this plan item is in semi-terminal state.public boolean isPreActivation()
isPreActivation in interface PlanItemViewtrue if and only if this plan item is in any state before PlanItemState.ACTIVE.public Set<String> getArmedEntrySentries()
getArmedEntrySentries in interface PlanItemViewpublic Set<String> getDeferredEntrySentries()
getDeferredEntrySentries in interface PlanItemViewpublic Set<String> getArmedExitSentries()
getArmedExitSentries in interface PlanItemViewpublic Set<String> getDeferredExitSentries()
getDeferredExitSentries in interface PlanItemViewpublic boolean isArmed()
isArmed in interface PlanItemViewtrue 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()
PlanItemViewThe plan item’s custom run-time state. The map is managed by modelers and extension implementers.
May be null.
getCustomState in interface PlanItemViewpublic int getAvailableChildrenCount()
getAvailableChildrenCount in interface PlanItemViewpublic int getActiveChildrenCount()
getActiveChildrenCount in interface PlanItemViewpublic int getChildInstanceCount()
getChildInstanceCount in interface PlanItemViewpublic int getCompletedChildrenCount()
getCompletedChildrenCount in interface PlanItemViewpublic int getDisabledChildrenCount()
getDisabledChildrenCount in interface PlanItemViewpublic int getEnabledChildrenCount()
getEnabledChildrenCount in interface PlanItemViewpublic int getTerminatedChildrenCount()
getTerminatedChildrenCount in interface PlanItemViewpublic int getTriggeredChildrenCount()
getTriggeredChildrenCount in interface PlanItemViewpublic boolean isWaitingOnChildren()
isWaitingOnChildren in interface PlanItemViewtrue 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 PlanItemViewtrue 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()
CaseTaskViewApplies to plan items of a case plan model that has been created as a result of a case task.
getOwnerCasePlanModel in interface CaseTaskViewnull for top level Cases (i.e. cases not started from a Case task).public PlanItemView getParentCasePlanModel()
CaseTaskViewApplies to plan items of a case plan model that has been created as a result of a case task.
getParentCasePlanModel in interface CaseTaskViewnull for any other type of case.public PlanItemView getTopMostCasePlanModel()
CaseTaskViewApplies to plan items of a case plan model that has been created as a result of a case task.
getTopMostCasePlanModel in interface CaseTaskViewpublic Map<String,PlanItemView> getPlanItems()
CaseTaskViewApplies to plan items of type CaseTask.
getPlanItems in interface CaseTaskViewnull for case tasks that have not yet been started or
for plan items that are not of type case task.public PlanItemView getTargetCasePlanModel()
CaseTaskViewApplies to plan items of type CaseTask.
getTargetCasePlanModel in interface CaseTaskViewnull for case tasks that have not yet been started.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.