Search in sources :

Example 1 with Expression

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

the class ExpressionImpl method registerType.

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

        public Expression newInstance(ModelTypeInstanceContext instanceContext) {
            return new ExpressionImpl(instanceContext);
        }
    });
    languageAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_LANGUAGE).defaultValue("http://www.w3.org/1999/XPath").build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    bodyChild = sequenceBuilder.element(Body.class).build();
    typeBuilder.build();
}
Also used : CmmnElement(org.camunda.bpm.model.cmmn.instance.CmmnElement) Expression(org.camunda.bpm.model.cmmn.instance.Expression) 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)

Aggregations

CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)1 Expression (org.camunda.bpm.model.cmmn.instance.Expression)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