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