Skip to main content
Version: 4.1

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: 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.