kleinph
kleinph

Reputation: 181

Set label and id on BPMN lane programmatically

How can I change the label/name and id of a lane in bpmn-js or bpmn-moddle.

Upvotes: 1

Views: 696

Answers (1)

kleinph
kleinph

Reputation: 181

Set it just on the business object of the lane.

import { getBusinessObject } from 'bpmn-js/lib/util/ModelUtil';

const bo = getBusinessObject(laneElement);
bo.id = 'someId';
bo.name = 'Some Name';

Upvotes: 1

Related Questions