use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CorrelationKeyImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CorrelationKey.class, BPMN_ELEMENT_CORRELATION_KEY).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<CorrelationKey>() {
public CorrelationKey newInstance(ModelTypeInstanceContext instanceContext) {
return new CorrelationKeyImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
correlationPropertyRefCollection = sequenceBuilder.elementCollection(CorrelationPropertyRef.class).qNameElementReferenceCollection(CorrelationProperty.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CorrelationPropertyBindingImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CorrelationPropertyBinding.class, BPMN_ELEMENT_CORRELATION_PROPERTY_BINDING).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<CorrelationPropertyBinding>() {
public CorrelationPropertyBinding newInstance(ModelTypeInstanceContext instanceContext) {
return new CorrelationPropertyBindingImpl(instanceContext);
}
});
correlationPropertyRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_CORRELATION_PROPERTY_REF).required().qNameAttributeReference(CorrelationProperty.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataPathChild = sequenceBuilder.element(DataPath.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ComplexGatewayImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ComplexGateway.class, BPMN_ELEMENT_COMPLEX_GATEWAY).namespaceUri(BPMN20_NS).extendsType(Gateway.class).instanceProvider(new ModelTypeInstanceProvider<ComplexGateway>() {
public ComplexGateway newInstance(ModelTypeInstanceContext instanceContext) {
return new ComplexGatewayImpl(instanceContext);
}
});
defaultAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DEFAULT).idAttributeReference(SequenceFlow.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
activationConditionChild = sequenceBuilder.element(ActivationCondition.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CollaborationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Collaboration.class, BPMN_ELEMENT_COLLABORATION).namespaceUri(BPMN20_NS).extendsType(RootElement.class).instanceProvider(new ModelTypeInstanceProvider<Collaboration>() {
public Collaboration newInstance(ModelTypeInstanceContext instanceContext) {
return new CollaborationImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
isClosedAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_IS_CLOSED).defaultValue(false).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
participantCollection = sequenceBuilder.elementCollection(Participant.class).build();
messageFlowCollection = sequenceBuilder.elementCollection(MessageFlow.class).build();
artifactCollection = sequenceBuilder.elementCollection(Artifact.class).build();
conversationNodeCollection = sequenceBuilder.elementCollection(ConversationNode.class).build();
conversationAssociationCollection = sequenceBuilder.elementCollection(ConversationAssociation.class).build();
participantAssociationCollection = sequenceBuilder.elementCollection(ParticipantAssociation.class).build();
messageFlowAssociationCollection = sequenceBuilder.elementCollection(MessageFlowAssociation.class).build();
correlationKeyCollection = sequenceBuilder.elementCollection(CorrelationKey.class).build();
conversationLinkCollection = sequenceBuilder.elementCollection(ConversationLink.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class DiagramElementImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DiagramElement.class, DI_ELEMENT_DIAGRAM_ELEMENT).namespaceUri(DI_NS).abstractType();
idAttribute = typeBuilder.stringAttribute(DI_ATTRIBUTE_ID).idAttribute().build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
extensionChild = sequenceBuilder.element(Extension.class).build();
typeBuilder.build();
}
Aggregations