Search in sources :

Example 1 with PerformanceIndicator

use of org.camunda.bpm.model.dmn.instance.PerformanceIndicator in project camunda-dmn-model by camunda.

the class PerformanceIndicatorImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PerformanceIndicator.class, DMN_ELEMENT_PERFORMANCE_INDICATOR).namespaceUri(DMN11_NS).extendsType(BusinessContextElement.class).instanceProvider(new ModelTypeInstanceProvider<PerformanceIndicator>() {

        public PerformanceIndicator newInstance(ModelTypeInstanceContext instanceContext) {
            return new PerformanceIndicatorImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    impactingDecisionRefCollection = sequenceBuilder.elementCollection(ImpactingDecisionReference.class).uriElementReferenceCollection(Decision.class).build();
    typeBuilder.build();
}
Also used : PerformanceIndicator(org.camunda.bpm.model.dmn.instance.PerformanceIndicator) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) BusinessContextElement(org.camunda.bpm.model.dmn.instance.BusinessContextElement) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) ImpactingDecisionReference(org.camunda.bpm.model.dmn.instance.ImpactingDecisionReference)

Aggregations

BusinessContextElement (org.camunda.bpm.model.dmn.instance.BusinessContextElement)1 ImpactingDecisionReference (org.camunda.bpm.model.dmn.instance.ImpactingDecisionReference)1 PerformanceIndicator (org.camunda.bpm.model.dmn.instance.PerformanceIndicator)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