use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class EdgeImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Edge.class, DI_ELEMENT_EDGE).namespaceUri(DI_NS).extendsType(DiagramElement.class).abstractType();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
waypointCollection = sequenceBuilder.elementCollection(Waypoint.class).minOccurs(2).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class LabelImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Label.class, DI_ELEMENT_LABEL).namespaceUri(DI_NS).extendsType(Node.class).abstractType();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
boundsChild = sequenceBuilder.element(Bounds.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class BaseElementImpl method registerType.
public static void registerType(ModelBuilder bpmnModelBuilder) {
ModelElementTypeBuilder typeBuilder = bpmnModelBuilder.defineType(BaseElement.class, BPMN_ELEMENT_BASE_ELEMENT).namespaceUri(BPMN20_NS).abstractType();
idAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ID).idAttribute().build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
documentationCollection = sequenceBuilder.elementCollection(Documentation.class).build();
extensionElementsChild = sequenceBuilder.element(ExtensionElements.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CallConversationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CallConversation.class, BPMN_ELEMENT_CALL_CONVERSATION).namespaceUri(BPMN20_NS).extendsType(ConversationNode.class).instanceProvider(new ModelTypeInstanceProvider<CallConversation>() {
public CallConversation newInstance(ModelTypeInstanceContext instanceContext) {
return new CallConversationImpl(instanceContext);
}
});
calledCollaborationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_CALLED_COLLABORATION_REF).qNameAttributeReference(GlobalConversation.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
participantAssociationCollection = sequenceBuilder.elementCollection(ParticipantAssociation.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ActivityImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Activity.class, BPMN_ELEMENT_ACTIVITY).namespaceUri(BpmnModelConstants.BPMN20_NS).extendsType(FlowNode.class).abstractType();
isForCompensationAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_IS_FOR_COMPENSATION).defaultValue(false).build();
startQuantityAttribute = typeBuilder.integerAttribute(BPMN_ATTRIBUTE_START_QUANTITY).defaultValue(1).build();
completionQuantityAttribute = typeBuilder.integerAttribute(BPMN_ATTRIBUTE_COMPLETION_QUANTITY).defaultValue(1).build();
defaultAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DEFAULT).idAttributeReference(SequenceFlow.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
ioSpecificationChild = sequenceBuilder.element(IoSpecification.class).build();
propertyCollection = sequenceBuilder.elementCollection(Property.class).build();
dataInputAssociationCollection = sequenceBuilder.elementCollection(DataInputAssociation.class).build();
dataOutputAssociationCollection = sequenceBuilder.elementCollection(DataOutputAssociation.class).build();
resourceRoleCollection = sequenceBuilder.elementCollection(ResourceRole.class).build();
loopCharacteristicsChild = sequenceBuilder.element(LoopCharacteristics.class).build();
typeBuilder.build();
}
Aggregations