Search in sources :

Example 21 with ModelElementTypeBuilder

use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.

the class ImpactingDecisionReferenceImpl method registerType.

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

        public ImpactingDecisionReference newInstance(ModelTypeInstanceContext instanceContext) {
            return new ImpactingDecisionReferenceImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) DmnElementReference(org.camunda.bpm.model.dmn.instance.DmnElementReference) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) ImpactingDecisionReference(org.camunda.bpm.model.dmn.instance.ImpactingDecisionReference)

Example 22 with ModelElementTypeBuilder

use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.

the class ImportImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Import.class, DMN_ELEMENT_IMPORT).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Import>() {

        public Import newInstance(ModelTypeInstanceContext instanceContext) {
            return new ImportImpl(instanceContext);
        }
    });
    namespaceAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_NAMESPACE).required().build();
    locationUriAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_LOCATION_URI).build();
    importTypeAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_IMPORT_TYPE).required().build();
    typeBuilder.build();
}
Also used : Import(org.camunda.bpm.model.dmn.instance.Import) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 23 with ModelElementTypeBuilder

use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.

the class ImportedElementImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ImportedElement.class, DMN_ELEMENT_IMPORTED_ELEMENT).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<ImportedElement>() {

        public ImportedElement newInstance(ModelTypeInstanceContext instanceContext) {
            return new ImportedElementImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : ImportedElement(org.camunda.bpm.model.dmn.instance.ImportedElement) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 24 with ModelElementTypeBuilder

use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.

the class InformationItemImpl method registerType.

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

        public InformationItem newInstance(ModelTypeInstanceContext instanceContext) {
            return new InformationItemImpl(instanceContext);
        }
    });
    typeRefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_TYPE_REF).build();
    typeBuilder.build();
}
Also used : ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) InformationItem(org.camunda.bpm.model.dmn.instance.InformationItem) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) NamedElement(org.camunda.bpm.model.dmn.instance.NamedElement)

Example 25 with ModelElementTypeBuilder

use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.

the class InputClauseImpl method registerType.

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

        public InputClause newInstance(ModelTypeInstanceContext instanceContext) {
            return new InputClauseImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    inputExpressionChild = sequenceBuilder.element(InputExpression.class).required().build();
    inputValuesChild = sequenceBuilder.element(InputValues.class).build();
    // camunda extensions
    camundaInputVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_INPUT_VARIABLE).namespace(CAMUNDA_NS).build();
    typeBuilder.build();
}
Also used : DmnElement(org.camunda.bpm.model.dmn.instance.DmnElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) InputExpression(org.camunda.bpm.model.dmn.instance.InputExpression) InputClause(org.camunda.bpm.model.dmn.instance.InputClause)

Aggregations

ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)416 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)373 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)152 BaseElement (org.camunda.bpm.model.bpmn.instance.BaseElement)31 DmnElementReference (org.camunda.bpm.model.dmn.instance.DmnElementReference)23 CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)16 Expression (org.camunda.bpm.model.bpmn.instance.Expression)13 RootElement (org.camunda.bpm.model.bpmn.instance.RootElement)11 EventDefinition (org.camunda.bpm.model.bpmn.instance.EventDefinition)10 Expression (org.camunda.bpm.model.dmn.instance.Expression)9 Task (org.camunda.bpm.model.bpmn.instance.Task)8 Expression (org.camunda.bpm.model.cmmn.instance.Expression)8 NamedElement (org.camunda.bpm.model.dmn.instance.NamedElement)8 DmnElement (org.camunda.bpm.model.dmn.instance.DmnElement)7 Gateway (org.camunda.bpm.model.bpmn.instance.Gateway)6 PlanItemDefinition (org.camunda.bpm.model.cmmn.instance.PlanItemDefinition)6 FormalExpression (org.camunda.bpm.model.bpmn.instance.FormalExpression)5 DrgElement (org.camunda.bpm.model.dmn.instance.DrgElement)5 InformationItem (org.camunda.bpm.model.dmn.instance.InformationItem)5 FlowElement (org.camunda.bpm.model.bpmn.instance.FlowElement)4