use of org.camunda.bpm.model.bpmn.instance.LinkEventDefinition in project camunda-bpmn-model by camunda.
the class LinkEventDefinitionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LinkEventDefinition.class, BPMN_ELEMENT_LINK_EVENT_DEFINITION).namespaceUri(BPMN20_NS).extendsType(EventDefinition.class).instanceProvider(new ModelTypeInstanceProvider<LinkEventDefinition>() {
public LinkEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
return new LinkEventDefinitionImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
sourceCollection = sequenceBuilder.elementCollection(Source.class).qNameElementReferenceCollection(LinkEventDefinition.class).build();
targetChild = sequenceBuilder.element(Target.class).qNameElementReference(LinkEventDefinition.class).build();
typeBuilder.build();
}
Aggregations