use of org.camunda.bpm.model.bpmn.instance.Interface in project camunda-bpmn-model by camunda.
the class InterfaceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Interface.class, BPMN_ELEMENT_INTERFACE).namespaceUri(BPMN20_NS).extendsType(RootElement.class).instanceProvider(new ModelTypeInstanceProvider<Interface>() {
public Interface newInstance(ModelTypeInstanceContext instanceContext) {
return new InterfaceImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build();
implementationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION_REF).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
operationCollection = sequenceBuilder.elementCollection(Operation.class).required().build();
typeBuilder.build();
}
Aggregations