Class MPool


public class MPool extends MAssociationTarget
A pool represents some kind of unit inside a bpmn model.
  • Field Details

    • activities

      protected List<MActivity> activities
      The vertices.
    • lanes

      protected List<MLane> lanes
      The lanes.
    • artifacts

      protected List<MArtifact> artifacts
      The artifacs.
    • type

      protected String type
      The type.
  • Constructor Details

    • MPool

      public MPool()
  • Method Details

    • getActivities

      public List<MActivity> getActivities()
      Get the activities.
      Returns:
      The activities.
    • getActivity

      public MActivity getActivity(String id)
      Get an activity per id.
    • addActivity

      public void addActivity(MActivity activity)
      Add an activity.
      Parameters:
      activity - The activity.
    • removeActivity

      public void removeActivity(MActivity activity)
      Remove an activity.
      Parameters:
      activity - The activity.
    • getLanes

      public List<MLane> getLanes()
      Get the lanes.
      Returns:
      The lanes.
    • addLane

      public void addLane(MLane lane)
      Add a lane.
      Parameters:
      lane - The lane.
    • removeLane

      public void removeLane(MLane lane)
      Remove a lane.
      Parameters:
      lane - The lane.
    • getArtifacts

      public List<MArtifact> getArtifacts()
      Get the artifacts.
      Returns:
      The artifacts.
    • addArtifact

      public void addArtifact(MArtifact artifact)
      Add an artifact.
      Parameters:
      artifact - The artifact.
    • removeArtifact

      public void removeArtifact(MArtifact artifact)
      Remove an artifact.
      Parameters:
      artifact - The artifact.
    • getType

      public String getType()
      Get the type.
      Returns:
      The type.
    • setType

      public void setType(String type)
      Set the type.
      Parameters:
      type - The type to set.
    • getStartActivities

      public List<MActivity> getStartActivities()
      Get all start activities of the pool.
      Returns:
      A non-empty List of start activities or null, if none.