Package org.camunda.bpm.model.xml.type

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


  protected static Attribute<String> camundaStringValueAttribute;
  protected static ChildElement<CamundaExpression> camundaExpressionChild;
  protected static ChildElement<CamundaString> camundaStringChild;

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

    camundaNameAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_NAME)
      .namespace(CAMUNDA_NS)
      .build();

    camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION)
      .namespace(CAMUNDA_NS)
      .build();

    camundaStringValueAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_STRING_VALUE)
      .namespace(CAMUNDA_NS)
      .build();

    SequenceBuilder sequenceBuilder = typeBuilder.sequence();

    camundaExpressionChild = sequenceBuilder.element(CamundaExpression.class)
      .build();

    camundaStringChild = sequenceBuilder.element(CamundaString.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here


  protected static Attribute<Boolean> waitForCompletionAttribute;
  protected static AttributeReference<Activity> activityRefAttribute;

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

    waitForCompletionAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_WAIT_FOR_COMPLETION)
      .build();

    activityRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ACTIVITY_REF)
      .qNameAttributeReference(Activity.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here

public class CamundaValidationImpl extends BpmnModelElementInstanceImpl implements CamundaValidation {

  protected static ChildElementCollection<CamundaConstraint> camundaConstraintCollection;

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

    SequenceBuilder sequenceBuilder = typeBuilder.sequence();

    camundaConstraintCollection = sequenceBuilder.elementCollection(CamundaConstraint.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here

  protected static ChildElement<OutputSet> outputSetChild;
  protected static ChildElementCollection<EventDefinition> eventDefinitionCollection;
  protected static ElementReferenceCollection<EventDefinition, EventDefinitionRef> eventDefinitionRefCollection;

  public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CatchEvent.class, BPMN_ELEMENT_CATCH_EVENT)
      .namespaceUri(BPMN20_NS)
      .extendsType(Event.class)
      .abstractType();

    parallelMultipleAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_PARALLEL_MULTIPLE)
      .defaultValue(false)
      .build();

    SequenceBuilder sequenceBuilder = typeBuilder.sequence();

    dataOutputCollection = sequenceBuilder.elementCollection(DataOutput.class)
      .build();

    dataOutputAssociationCollection = sequenceBuilder.elementCollection(DataOutputAssociation.class)
      .build();

    outputSetChild = sequenceBuilder.element(OutputSet.class)
      .build();

    eventDefinitionCollection = sequenceBuilder.elementCollection(EventDefinition.class)
      .build();

    eventDefinitionRefCollection = sequenceBuilder.elementCollection(EventDefinitionRef.class)
      .qNameElementReferenceCollection(EventDefinition.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here

public class CamundaInputParameterImpl extends CamundaGenericValueElementImpl implements CamundaInputParameter {

  protected static Attribute<String> camundaNameAttribute;

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

    camundaNameAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_NAME)
      .namespace(CAMUNDA_NS)
      .required()
      .build();

    typeBuilder.build();
  }
View Full Code Here

* @author Sebastian Menski
*/
public class GlobalConversationImpl extends CollaborationImpl implements GlobalConversation {

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

    typeBuilder.build();
  }
View Full Code Here

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

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

    typeBuilder.build();
  }
View Full Code Here

public class InclusiveGatewayImpl extends GatewayImpl implements InclusiveGateway {

  protected static AttributeReference<SequenceFlow> defaultAttribute;

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

    defaultAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DEFAULT)
      .idAttributeReference(SequenceFlow.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here

  protected static AttributeReference<MessageFlow> innerMessageFlowRefAttribute;
  protected static AttributeReference<MessageFlow> outerMessageFlowRefAttribute;

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

    innerMessageFlowRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_INNER_MESSAGE_FLOW_REF)
      .required()
      .qNameAttributeReference(MessageFlow.class)
      .build();

    outerMessageFlowRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_OUTER_MESSAGE_FLOW_REF)
      .required()
      .qNameAttributeReference(MessageFlow.class)
      .build();

    typeBuilder.build();
  }
View Full Code Here

public class CategoryValueImpl extends BaseElementImpl implements CategoryValue {

  protected static Attribute<String> valueAttribute;

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

    valueAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_VALUE)
      .build();

    typeBuilder.build();
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder

Copyright © 2018 www.massapicom. 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.