Package org.flowable.cmmn.model
Class PlanFragment
- java.lang.Object
-
- org.flowable.cmmn.model.BaseElement
-
- org.flowable.cmmn.model.CmmnElement
-
- org.flowable.cmmn.model.CaseElement
-
- org.flowable.cmmn.model.PlanItemDefinition
-
- org.flowable.cmmn.model.PlanFragment
-
- All Implemented Interfaces:
HasExtensionAttributes,HasLifecycleListeners
- Direct Known Subclasses:
Stage
public class PlanFragment extends PlanItemDefinition
Even though plan fragments don't have a runtime behavior, they still need to be stored in theCmmnModel, as they are needed when exporting the XML. From the CMMN spec: "Unlike other PlanItemDefinitions, a PlanFragment does not have a representation in run-time, i.e., there is no notion of lifecycle tracking of a PlanFragment (not being a Stage) in the context of a Case instance. Just the PlanItems that are contained in it are instantiated and have their lifecyles that are tracked.- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected Casecazeprotected PlanItemplanItemprotected Map<String,PlanItem>planItemDefinitionToItemMapprotected Map<String,PlanItem>planItemMapprotected List<Sentry>sentries-
Fields inherited from class org.flowable.cmmn.model.PlanItemDefinition
defaultControl, lifecycleListeners, planItemRef
-
Fields inherited from class org.flowable.cmmn.model.CaseElement
name, parent
-
Fields inherited from class org.flowable.cmmn.model.CmmnElement
documentation, documentationTextFormat
-
Fields inherited from class org.flowable.cmmn.model.BaseElement
attributes, extensionElements, id, xmlColumnNumber, xmlRowNumber
-
-
Constructor Summary
Constructors Constructor Description PlanFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlanItem(PlanItem planItem)voidaddSentry(Sentry sentry)PlanItemfindPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards(String planItemDefinitionId)PlanItemfindPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards(String planItemDefinitionId)PlanItemfindPlanItemInPlanFragmentOrDownwards(String planItemId)PlanItemfindPlanItemInPlanFragmentOrUpwards(String planItemId)SentryfindSentry(String sentryId)CasegetCase()List<PlanItem>getDirectChildPlanItemsWithLifecycleEnabled()PlanItemgetPlanItem()PlanItemgetPlanItem(String planItemId)List<PlanItem>getPlanItems()List<Sentry>getSentries()voidremovePlanItem(PlanItem planItem)voidsetCase(Case caze)voidsetPlanItem(PlanItem planItem)voidsetPlanItemMap(Map<String,PlanItem> planItemMap)voidsetSentries(List<Sentry> sentries)-
Methods inherited from class org.flowable.cmmn.model.PlanItemDefinition
getDefaultControl, getLifecycleListeners, getPlanItemRef, setDefaultControl, setLifecycleListeners, setPlanItemRef, setValues, toString
-
Methods inherited from class org.flowable.cmmn.model.CaseElement
getName, getParent, getParentStage, setName, setParent
-
Methods inherited from class org.flowable.cmmn.model.CmmnElement
getDocumentation, getDocumentationTextFormat, setDocumentation, setDocumentationTextFormat, setValues
-
Methods inherited from class org.flowable.cmmn.model.BaseElement
addAttribute, addExtensionElement, getAttributes, getAttributeValue, getExtensionElements, getId, getXmlColumnNumber, getXmlRowNumber, setAttributes, setExtensionElements, setId, setValues, setXmlColumnNumber, setXmlRowNumber
-
-
-
-
Method Detail
-
findPlanItemInPlanFragmentOrDownwards
public PlanItem findPlanItemInPlanFragmentOrDownwards(String planItemId)
-
findPlanItemInPlanFragmentOrUpwards
public PlanItem findPlanItemInPlanFragmentOrUpwards(String planItemId)
-
findPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards
public PlanItem findPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards(String planItemDefinitionId)
-
findPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards
public PlanItem findPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards(String planItemDefinitionId)
-
addPlanItem
public void addPlanItem(PlanItem planItem)
-
removePlanItem
public void removePlanItem(PlanItem planItem)
-
getDirectChildPlanItemsWithLifecycleEnabled
public List<PlanItem> getDirectChildPlanItemsWithLifecycleEnabled()
-
addSentry
public void addSentry(Sentry sentry)
-
getCase
public Case getCase()
-
setCase
public void setCase(Case caze)
-
getPlanItem
public PlanItem getPlanItem()
-
setPlanItem
public void setPlanItem(PlanItem planItem)
-
-