Bpmn-moddle: Create bpmn:laneSet -> Not implemented?

Following the example from bpmn-moddle here I’m trying to add a laneSet to my process as follows:

‘lane = moddle.create(‘bpmn:laneSet’, { id: ‘MyLaneSet_1’ });’

But this throws:

unknown type <bpmn:laneSet>

Same goes vor bpmn:lane, btw. Is this not implemented or am I doing something wrong? Where is the documentation for which types of bpmn definitions I can use?

Duh…turns out the name is case sensitive, meaning it should be bpmn:LaneSet.

Still, the question regarding documentation is still unanswered (and could have prevented this question :))

You can find the full BPMN descriptors here. Dedicated documentation does not exist.

OK, thanks that helps a lot. I see that all descriptors (also for dc and bpmndi) are here:

The only thing I’m still struggling with is how to add a bpmndi:BPMNShape to a bpmndi:BPMNPlane. bpmndi:BPMNPlane doesn’t have a property shape or something similar. Or should I add it in another way?

bpmndi:BPMNPlane inherits from di:Plane which has a planeElement property. Therefore, you can do:

plane.planeElement = [ shape ];