Search in sources :

Example 56 with SequenceBuilder

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();
}
Also used : DiagramElement(org.camunda.bpm.model.bpmn.instance.di.DiagramElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) Waypoint(org.camunda.bpm.model.bpmn.instance.di.Waypoint) Edge(org.camunda.bpm.model.bpmn.instance.di.Edge)

Example 57 with SequenceBuilder

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();
}
Also used : Node(org.camunda.bpm.model.bpmn.instance.di.Node) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) Label(org.camunda.bpm.model.bpmn.instance.di.Label) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Example 58 with SequenceBuilder

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();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Example 59 with SequenceBuilder

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();
}
Also used : CallConversation(org.camunda.bpm.model.bpmn.instance.CallConversation) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ConversationNode(org.camunda.bpm.model.bpmn.instance.ConversationNode) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 60 with SequenceBuilder

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();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Aggregations

ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)152 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)152 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)133 BaseElement (org.camunda.bpm.model.bpmn.instance.BaseElement)14 CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)13 Expression (org.camunda.bpm.model.dmn.instance.Expression)8 FlowElement (org.camunda.bpm.model.bpmn.instance.FlowElement)4 Task (org.camunda.bpm.model.cmmn.instance.Task)4 EventDefinition (org.camunda.bpm.model.bpmn.instance.EventDefinition)3 RootElement (org.camunda.bpm.model.bpmn.instance.RootElement)3 DmnElement (org.camunda.bpm.model.dmn.instance.DmnElement)3 DrgElement (org.camunda.bpm.model.dmn.instance.DrgElement)3 NamedElement (org.camunda.bpm.model.dmn.instance.NamedElement)3 ConversationNode (org.camunda.bpm.model.bpmn.instance.ConversationNode)2 CorrelationPropertyRetrievalExpression (org.camunda.bpm.model.bpmn.instance.CorrelationPropertyRetrievalExpression)2 Expression (org.camunda.bpm.model.bpmn.instance.Expression)2 FlowNode (org.camunda.bpm.model.bpmn.instance.FlowNode)2 Operation (org.camunda.bpm.model.bpmn.instance.Operation)2 Task (org.camunda.bpm.model.bpmn.instance.Task)2 Node (org.camunda.bpm.model.bpmn.instance.di.Node)2