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