Class 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 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 Details

  • Constructor Details

    • PlanFragment

      public PlanFragment()
  • Method Details

    • findPlanItemInPlanFragmentOrDownwards

      public PlanItem findPlanItemInPlanFragmentOrDownwards(String planItemId)
    • findPlanItemInPlanFragmentOrUpwards

      public PlanItem findPlanItemInPlanFragmentOrUpwards(String planItemId)
    • findPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards

      public PlanItem findPlanItemForPlanItemDefinitionInPlanFragmentOrUpwards(String planItemDefinitionId)
    • findPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards

      public PlanItem findPlanItemForPlanItemDefinitionInPlanFragmentOrDownwards(String planItemDefinitionId)
    • findSentry

      public Sentry findSentry(String sentryId)
    • 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)
    • getPlanItems

      public List<PlanItem> getPlanItems()
    • setPlanItemMap

      public void setPlanItemMap(Map<String,PlanItem> planItemMap)
    • getPlanItem

      public PlanItem getPlanItem(String planItemId)
    • getSentries

      public List<Sentry> getSentries()
    • setSentries

      public void setSentries(List<Sentry> sentries)