Examples of ModelElementTypeBuilder


Examples of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder

public class SignalEventDefinitionImpl extends EventDefinitionImpl implements SignalEventDefinition {

  protected static AttributeReference<Signal> signalRefAttribute;

  public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(SignalEventDefinition.class, BPMN_ELEMENT_SIGNAL_EVENT_DEFINITION)
      .namespaceUri(BPMN20_NS)
      .extendsType(EventDefinition.class)
      .instanceProvider(new ModelTypeInstanceProvider<SignalEventDefinition>() {
        public SignalEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
          return new SignalEventDefinitionImpl(instanceContext);
        }
      });

    signalRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SIGNAL_REF)
      .qNameAttributeReference(Signal.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.