use of org.camunda.bpm.model.bpmn.instance.LaneSet in project camunda-bpmn-model by camunda.
the class LaneSetImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LaneSet.class, BPMN_ELEMENT_LANE_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<LaneSet>() {
public LaneSet newInstance(ModelTypeInstanceContext instanceContext) {
return new LaneSetImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
laneCollection = sequenceBuilder.elementCollection(Lane.class).build();
typeBuilder.build();
}
Aggregations