Set label and id on BPMN lane programmatically

592 views Asked by At

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

1

There are 1 answers

0
kleinph On BEST ANSWER

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';

Related Questions in BPMN-MODDLE