Skip to main content
Version: 4.1

Activity

extends ExportableObject

Default exportable object for the bpmn2.Activity element. Includes both tasks and sub-processes.

constructor​

constructor(cellView: dia.CellView, type?: string, markers?: string[], label?: string);

Methods​

isSubProcess()​

isSubProcess(): boolean;

Returns true if the activity is a sub-process. Override this method to show the export process that the element should be treated as a sub-process.

toShapeXMLElement()​

toShapeXMLElement(): Element;

Creates BPMNShape XML element from the exportable object.

toTaskXMLElement()​

toTaskXMLElement(): Element;

Creates task or subprocess XML element from the exportable object.

Properties​

type​

type: string;

Activity type.

markers​

markers: string[];

Activity markers.

label​

label: string | null;

Activity label.