Class MPool


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

      • activities

        protected java.util.List<MActivity> activities
        The vertices.
      • lanes

        protected java.util.List<MLane> lanes
        The lanes.
      • artifacts

        protected java.util.List<MArtifact> artifacts
        The artifacs.
      • type

        protected java.lang.String type
        The type.
    • Constructor Detail

      • MPool

        public MPool()
    • Method Detail

      • getActivities

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

        public MActivity getActivity​(java.lang.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 java.util.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 java.util.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 java.lang.String getType()
        Get the type.
        Returns:
        The type.
      • setType

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

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