use of org.camunda.bpm.model.dmn.instance.KnowledgeSource in project camunda-dmn-model by camunda.
the class KnowledgeSourceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(KnowledgeSource.class, DMN_ELEMENT_KNOWLEDGE_SOURCE).namespaceUri(DMN11_NS).extendsType(DrgElement.class).instanceProvider(new ModelTypeInstanceProvider<KnowledgeSource>() {
public KnowledgeSource newInstance(ModelTypeInstanceContext instanceContext) {
return new KnowledgeSourceImpl(instanceContext);
}
});
locationUriAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_LOCATION_URI).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
authorityRequirementCollection = sequenceBuilder.elementCollection(AuthorityRequirement.class).build();
typeChild = sequenceBuilder.element(Type.class).build();
ownerRef = sequenceBuilder.element(OwnerReference.class).uriElementReference(OrganizationUnit.class).build();
typeBuilder.build();
}
Aggregations