Examples of ModelElementTypeBuilder


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

public class EscalationEventDefinitionImpl extends EventDefinitionImpl implements EscalationEventDefinition {

  protected static AttributeReference<Escalation> escalationRefAttribute;

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

    escalationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ESCALATION_REF)
      .qNameAttributeReference(Escalation.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class TimeCycleImpl extends ExpressionImpl implements TimeCycle {

  public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(TimeCycle.class, BPMN_ELEMENT_TIME_CYCLE)
      .namespaceUri(BPMN20_NS)
      .extendsType(Expression.class)
      .instanceProvider(new ModelTypeInstanceProvider<TimeCycle>() {
        public TimeCycle newInstance(ModelTypeInstanceContext instanceContext) {
          return new TimeCycleImpl(instanceContext);
        }
      });

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class CorrelationPropertyRef extends BpmnModelElementInstanceImpl {

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

    typeBuilder.build();
  }
View Full Code Here

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

public class ConditionalEventDefinitionImpl extends EventDefinitionImpl implements ConditionalEventDefinition {

  protected static ChildElement<Condition> conditionChild;

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

    SequenceBuilder sequenceBuilder = typeBuilder.sequence();

    conditionChild = sequenceBuilder.element(Condition.class)
      .required()
      .build();

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class IntermediateThrowEventImpl extends ThrowEventImpl implements IntermediateThrowEvent {

  public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(IntermediateThrowEvent.class, BPMN_ELEMENT_INTERMEDIATE_THROW_EVENT)
      .namespaceUri(BpmnModelConstants.BPMN20_NS)
      .extendsType(ThrowEvent.class)
      .instanceProvider(new ModelTypeInstanceProvider<IntermediateThrowEvent>() {
        public IntermediateThrowEvent newInstance(ModelTypeInstanceContext instanceContext) {
          return new IntermediateThrowEventImpl(instanceContext);
        }
      });

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class To extends ExpressionImpl {

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

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class InnerParticipantRef extends BpmnModelElementInstanceImpl {

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

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class ExpressionImpl extends BaseElementImpl implements Expression {

  public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Expression.class, BPMN_ELEMENT_EXPRESSION)
      .namespaceUri(BPMN20_NS)
      .extendsType(BaseElement.class)
      .instanceProvider(new ModelTypeInstanceProvider<Expression>() {
        public Expression newInstance(ModelTypeInstanceContext instanceContext) {
          return new ExpressionImpl(instanceContext);
        }
      });

    typeBuilder.build();
  }
View Full Code Here

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

* @author Sebastian Menski
*/
public class ResourceRef extends BpmnModelElementInstanceImpl {

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

    typeBuilder.build();
  }
View Full Code Here

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

  protected static ElementReferenceCollection<DataInput, OptionalInputRefs> optionalInputRefsCollection;
  protected static ElementReferenceCollection<DataInput, WhileExecutingInputRefs> whileExecutingInputRefsCollection;
  protected static ElementReferenceCollection<OutputSet, OutputSetRefs> outputSetOutputSetRefsCollection;

  public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputSet.class, BPMN_ELEMENT_INPUT_SET)
      .namespaceUri(BPMN20_NS)
      .extendsType(BaseElement.class)
      .instanceProvider(new ModelTypeInstanceProvider<InputSet>() {
        public InputSet newInstance(ModelTypeInstanceContext instanceContext) {
          return new InputSetImpl(instanceContext);
        }
      });

    nameAttribute = typeBuilder.stringAttribute("name")
      .build();

    SequenceBuilder sequenceBuilder = typeBuilder.sequence();

    dataInputDataInputRefsCollection = sequenceBuilder.elementCollection(DataInputRefs.class)
      .idElementReferenceCollection(DataInput.class)
      .build();

    optionalInputRefsCollection = sequenceBuilder.elementCollection(OptionalInputRefs.class)
      .idElementReferenceCollection(DataInput.class)
      .build();

    whileExecutingInputRefsCollection = sequenceBuilder.elementCollection(WhileExecutingInputRefs.class)
      .idElementReferenceCollection(DataInput.class)
      .build();

    outputSetOutputSetRefsCollection = sequenceBuilder.elementCollection(OutputSetRefs.class)
      .idElementReferenceCollection(OutputSet.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.