use of org.camunda.bpm.model.dmn.instance.OrganizationUnit in project camunda-dmn-model by camunda.
the class OrganizationUnitImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OrganizationUnit.class, DMN_ELEMENT_ORGANIZATION_UNIT).namespaceUri(DMN11_NS).extendsType(BusinessContextElement.class).instanceProvider(new ModelTypeInstanceProvider<OrganizationUnit>() {
public OrganizationUnit newInstance(ModelTypeInstanceContext instanceContext) {
return new OrganizationUnitImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
decisionDecisionMadeRefCollection = sequenceBuilder.elementCollection(DecisionMadeReference.class).uriElementReferenceCollection(Decision.class).build();
decisionDecisionOwnedRefCollection = sequenceBuilder.elementCollection(DecisionOwnedReference.class).uriElementReferenceCollection(Decision.class).build();
typeBuilder.build();
}
Aggregations