Search in sources :

Example 1 with OrganizationUnit

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();
}
Also used : OrganizationUnit(org.camunda.bpm.model.dmn.instance.OrganizationUnit) DecisionMadeReference(org.camunda.bpm.model.dmn.instance.DecisionMadeReference) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) DecisionOwnedReference(org.camunda.bpm.model.dmn.instance.DecisionOwnedReference) BusinessContextElement(org.camunda.bpm.model.dmn.instance.BusinessContextElement) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

BusinessContextElement (org.camunda.bpm.model.dmn.instance.BusinessContextElement)1 DecisionMadeReference (org.camunda.bpm.model.dmn.instance.DecisionMadeReference)1 DecisionOwnedReference (org.camunda.bpm.model.dmn.instance.DecisionOwnedReference)1 OrganizationUnit (org.camunda.bpm.model.dmn.instance.OrganizationUnit)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1