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();
}
Aggregations