AbstractPool
extends ExportableObject
Abstract class which represents exportable pools. Contains common methods for pools.
constructorβ
constructor(cellView: dia.CellView, lanes?: Lane[], header?: string, orientation?: Orientation);
Methodsβ
getHeader()β
protected abstract getHeader(): string;
Override this method to change how the header is retrieved from the element.
getLaneIdByCell()β
protected abstract getLaneIdByCell(cell: dia.Cell): string | null;
Override this method to show the exportable how to determine the lane id by its embedded cell.
getLanes()β
protected abstract getLanes(): Lane[];
Override this method to change how the lanes are retrieved from the element.
getOrientation()β
protected abstract getOrientation(): Orientation;
Override this method to change how the orientation is retrieved from the element.
toParticipantXMLElement()β
toParticipantXMLElement(processId: string): Element;
Creates participant
XML element from the pool using processId
assigned during the export process.
toProcessXMLElement()β
toProcessXMLElement(processId: string): Element;
Creates process
XML element from the pool using processId
assigned during the export process.
toShapeXMLElement()β
toShapeXMLElement(): Element;
Creates BPMNShape
XML element from the exportable object.
Propertiesβ
headerβ
header: string;
Header of the pool (name of a participant).
lanesβ
lanes: Lane[];
Pool lanes. See Lane type for more information.
orientationβ
orientation: Orientation;
Orientation of the pool. Can be either horizontal
or vertical
.