Search in sources :

Example 81 with SequenceBuilder

use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.

the class PlaneImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Plane.class, DI_ELEMENT_PLANE).namespaceUri(DI_NS).extendsType(Node.class).abstractType();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    diagramElementCollection = sequenceBuilder.elementCollection(DiagramElement.class).build();
    typeBuilder.build();
}
Also used : Plane(org.camunda.bpm.model.bpmn.instance.di.Plane) Node(org.camunda.bpm.model.bpmn.instance.di.Node) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Example 82 with SequenceBuilder

use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.

the class ShapeImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Shape.class, DI_ELEMENT_SHAPE).namespaceUri(DI_NS).extendsType(Node.class).abstractType();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    boundsChild = sequenceBuilder.element(Bounds.class).required().build();
    typeBuilder.build();
}
Also used : Shape(org.camunda.bpm.model.bpmn.instance.di.Shape) Node(org.camunda.bpm.model.bpmn.instance.di.Node) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) Bounds(org.camunda.bpm.model.bpmn.instance.dc.Bounds) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Example 83 with SequenceBuilder

use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.

the class BpmnLabelStyleImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BpmnLabelStyle.class, BPMNDI_ELEMENT_BPMN_LABEL_STYLE).namespaceUri(BPMNDI_NS).extendsType(Style.class).instanceProvider(new ModelTypeInstanceProvider<BpmnLabelStyle>() {

        public BpmnLabelStyle newInstance(ModelTypeInstanceContext instanceContext) {
            return new BpmnLabelStyleImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    fontChild = sequenceBuilder.element(Font.class).required().build();
    typeBuilder.build();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) Style(org.camunda.bpm.model.bpmn.instance.di.Style) BpmnLabelStyle(org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle) BpmnLabelStyle(org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) Font(org.camunda.bpm.model.bpmn.instance.dc.Font)

Example 84 with SequenceBuilder

use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.

the class LaneImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Lane.class, BPMN_ELEMENT_LANE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<Lane>() {

        public Lane newInstance(ModelTypeInstanceContext instanceContext) {
            return new LaneImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
    partitionElementRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PARTITION_ELEMENT_REF).qNameAttributeReference(PartitionElement.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    partitionElementChild = sequenceBuilder.element(PartitionElement.class).build();
    flowNodeRefCollection = sequenceBuilder.elementCollection(FlowNodeRef.class).idElementReferenceCollection(FlowNode.class).build();
    childLaneSetChild = sequenceBuilder.element(ChildLaneSet.class).build();
    typeBuilder.build();
}
Also used : BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) Lane(org.camunda.bpm.model.bpmn.instance.Lane) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 85 with SequenceBuilder

use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.

the class LaneSetImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LaneSet.class, BPMN_ELEMENT_LANE_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<LaneSet>() {

        public LaneSet newInstance(ModelTypeInstanceContext instanceContext) {
            return new LaneSetImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    laneCollection = sequenceBuilder.elementCollection(Lane.class).build();
    typeBuilder.build();
}
Also used : BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) LaneSet(org.camunda.bpm.model.bpmn.instance.LaneSet) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

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