Search in sources :

Example 1 with Property

use of org.camunda.bpm.model.cmmn.instance.Property in project camunda-cmmn-model by camunda.

the class PropertyImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Property.class, CMMN_ELEMENT_PROPERTY).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).instanceProvider(new ModelTypeInstanceProvider<Property>() {

        public Property newInstance(ModelTypeInstanceContext instanceContext) {
            return new PropertyImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_NAME).build();
    typeAttribte = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_TYPE).build();
    typeBuilder.build();
}
Also used : CmmnElement(org.camunda.bpm.model.cmmn.instance.CmmnElement) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) Property(org.camunda.bpm.model.cmmn.instance.Property)

Aggregations

CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)1 Property (org.camunda.bpm.model.cmmn.instance.Property)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1