Search in sources :

Example 1 with FormalExpression

use of org.camunda.bpm.model.bpmn.instance.FormalExpression in project camunda-bpmn-model by camunda.

the class FormalExpressionImpl method registerType.

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

        public FormalExpression newInstance(ModelTypeInstanceContext instanceContext) {
            return new FormalExpressionImpl(instanceContext);
        }
    });
    languageAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_LANGUAGE).build();
    evaluatesToTypeRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_EVALUATES_TO_TYPE_REF).qNameAttributeReference(ItemDefinition.class).build();
    typeBuilder.build();
}
Also used : Expression(org.camunda.bpm.model.bpmn.instance.Expression) FormalExpression(org.camunda.bpm.model.bpmn.instance.FormalExpression) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) FormalExpression(org.camunda.bpm.model.bpmn.instance.FormalExpression) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

Expression (org.camunda.bpm.model.bpmn.instance.Expression)1 FormalExpression (org.camunda.bpm.model.bpmn.instance.FormalExpression)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1