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
Even though plan fragments don't have a runtime behavior, they still need to be stored in the
CmmnModel
,
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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlanItem
(PlanItem planItem) void
findPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards
(String planItemDefinitionId) findPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards
(String planItemDefinitionId) findPlanItemInPlanFragmentOrDownwards
(String planItemId) findPlanItemInPlanFragmentOrUpwards
(String planItemId) findSentry
(String sentryId) getCase()
getPlanItem
(String planItemId) void
removePlanItem
(PlanItem planItem) void
void
setPlanItem
(PlanItem planItem) void
setPlanItemMap
(Map<String, PlanItem> planItemMap) void
setSentries
(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
-
Field Details
-
caze
-
planItem
-
planItemMap
-
planItemDefinitionToItemMap
-
sentries
-
-
Constructor Details
-
PlanFragment
public PlanFragment()
-
-
Method Details
-
findPlanItemInPlanFragmentOrDownwards
-
findPlanItemInPlanFragmentOrUpwards
-
findPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards
-
findPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards
-
findSentry
-
addPlanItem
-
removePlanItem
-
getDirectChildPlanItemsWithLifecycleEnabled
-
addSentry
-
getCase
-
setCase
-
getPlanItem
-
setPlanItem
-
getPlanItems
-
setPlanItemMap
-
getPlanItem
-
getSentries
-
setSentries
-