bpmn-visualization
Version:
A TypeScript library for visualizing process execution data on BPMN diagrams
49 lines (48 loc) • 2.4 kB
TypeScript
/**
* Copyright 2020 Bonitasoft S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ShapeBpmnElementKind } from './kinds';
/**
* Utils to simplify the management of {@link ShapeBpmnElementKind}.
*
* This class is mainly used for internal purpose. You may use it to customize the BPMN theme as proposed in the examples but be aware it is subject to change.
*
* @category BPMN
* @experimental
*/
export declare class ShapeUtil {
static isEvent(kind: ShapeBpmnElementKind | string): boolean;
static eventKinds(): ShapeBpmnElementKind[];
static isBoundaryEvent(kind: ShapeBpmnElementKind): boolean;
static isStartEvent(kind: ShapeBpmnElementKind): boolean;
static isCallActivity(kind: ShapeBpmnElementKind): boolean;
static isSubProcess(kind: ShapeBpmnElementKind): boolean;
static canHaveNoneEvent(kind: ShapeBpmnElementKind): boolean;
static isActivity(kind: ShapeBpmnElementKind | string): boolean;
static activityKinds(): ShapeBpmnElementKind[];
static isWithDefaultSequenceFlow(kind: ShapeBpmnElementKind): boolean;
/**
* Returns `true` if `kind` is related to a task, for instance {@link ShapeBpmnElementKind.TASK}, {@link ShapeBpmnElementKind.TASK_SERVICE}, but not a {@link ShapeBpmnElementKind.GLOBAL_TASK}.
*/
static isTask(kind: ShapeBpmnElementKind | string): boolean;
/**
* Returns all kinds related to a task, for instance {@link ShapeBpmnElementKind.TASK}, {@link ShapeBpmnElementKind.TASK_SEND}, but not a {@link ShapeBpmnElementKind.GLOBAL_TASK}.
*/
static taskKinds(): ShapeBpmnElementKind[];
static gatewayKinds(): ShapeBpmnElementKind[];
static isGateway(kind: ShapeBpmnElementKind | string): boolean;
static flowNodeKinds(): ShapeBpmnElementKind[];
static isPoolOrLane(kind: ShapeBpmnElementKind | string): boolean;
}