Search in sources :

Example 86 with SequenceBuilder

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

the class LinkEventDefinitionImpl method registerType.

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

        public LinkEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
            return new LinkEventDefinitionImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    sourceCollection = sequenceBuilder.elementCollection(Source.class).qNameElementReferenceCollection(LinkEventDefinition.class).build();
    targetChild = sequenceBuilder.element(Target.class).qNameElementReference(LinkEventDefinition.class).build();
    typeBuilder.build();
}
Also used : LinkEventDefinition(org.camunda.bpm.model.bpmn.instance.LinkEventDefinition) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) LinkEventDefinition(org.camunda.bpm.model.bpmn.instance.LinkEventDefinition) EventDefinition(org.camunda.bpm.model.bpmn.instance.EventDefinition) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 87 with SequenceBuilder

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

the class InterfaceImpl method registerType.

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

        public Interface newInstance(ModelTypeInstanceContext instanceContext) {
            return new InterfaceImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build();
    implementationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION_REF).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    operationCollection = sequenceBuilder.elementCollection(Operation.class).required().build();
    typeBuilder.build();
}
Also used : RootElement(org.camunda.bpm.model.bpmn.instance.RootElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) Operation(org.camunda.bpm.model.bpmn.instance.Operation) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) Interface(org.camunda.bpm.model.bpmn.instance.Interface)

Example 88 with SequenceBuilder

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

the class MultiInstanceLoopCharacteristicsImpl method registerType.

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

        public MultiInstanceLoopCharacteristics newInstance(ModelTypeInstanceContext instanceContext) {
            return new MultiInstanceLoopCharacteristicsImpl(instanceContext);
        }
    });
    isSequentialAttribute = typeBuilder.booleanAttribute(BPMN_ELEMENT_IS_SEQUENTIAL).defaultValue(false).build();
    behaviorAttribute = typeBuilder.enumAttribute(BPMN_ELEMENT_BEHAVIOR, MultiInstanceFlowCondition.class).defaultValue(MultiInstanceFlowCondition.All).build();
    oneBehaviorEventRefAttribute = typeBuilder.stringAttribute(BPMN_ELEMENT_ONE_BEHAVIOR_EVENT_REF).qNameAttributeReference(EventDefinition.class).build();
    noneBehaviorEventRefAttribute = typeBuilder.stringAttribute(BPMN_ELEMENT_NONE_BEHAVIOR_EVENT_REF).qNameAttributeReference(EventDefinition.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    loopCardinalityChild = sequenceBuilder.element(LoopCardinality.class).build();
    loopDataInputRefChild = sequenceBuilder.element(LoopDataInputRef.class).qNameElementReference(DataInput.class).build();
    loopDataOutputRefChild = sequenceBuilder.element(LoopDataOutputRef.class).qNameElementReference(DataOutput.class).build();
    outputDataItemChild = sequenceBuilder.element(OutputDataItem.class).build();
    inputDataItemChild = sequenceBuilder.element(InputDataItem.class).build();
    complexBehaviorDefinitionCollection = sequenceBuilder.elementCollection(ComplexBehaviorDefinition.class).build();
    completionConditionChild = sequenceBuilder.element(CompletionCondition.class).build();
    camundaAsyncAfter = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_ASYNC_AFTER).namespace(CAMUNDA_NS).defaultValue(false).build();
    camundaAsyncBefore = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_ASYNC_BEFORE).namespace(CAMUNDA_NS).defaultValue(false).build();
    camundaExclusive = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_EXCLUSIVE).namespace(CAMUNDA_NS).defaultValue(true).build();
    camundaCollection = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_COLLECTION).namespace(CAMUNDA_NS).build();
    camundaElementVariable = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_ELEMENT_VARIABLE).namespace(CAMUNDA_NS).build();
    typeBuilder.build();
}
Also used : MultiInstanceFlowCondition(org.camunda.bpm.model.bpmn.MultiInstanceFlowCondition) MultiInstanceLoopCharacteristics(org.camunda.bpm.model.bpmn.instance.MultiInstanceLoopCharacteristics) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) LoopCharacteristics(org.camunda.bpm.model.bpmn.instance.LoopCharacteristics) MultiInstanceLoopCharacteristics(org.camunda.bpm.model.bpmn.instance.MultiInstanceLoopCharacteristics)

Example 89 with SequenceBuilder

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

the class OperationImpl method registerType.

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

        public Operation newInstance(ModelTypeInstanceContext instanceContext) {
            return new OperationImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build();
    implementationRefAttribute = typeBuilder.stringAttribute(BPMN_ELEMENT_IMPLEMENTATION_REF).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    inMessageRefChild = sequenceBuilder.element(InMessageRef.class).required().qNameElementReference(Message.class).build();
    outMessageRefChild = sequenceBuilder.element(OutMessageRef.class).qNameElementReference(Message.class).build();
    errorRefCollection = sequenceBuilder.elementCollection(ErrorRef.class).qNameElementReferenceCollection(Error.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) Operation(org.camunda.bpm.model.bpmn.instance.Operation) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Example 90 with SequenceBuilder

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

the class ItemAwareElementImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ItemAwareElement.class, BPMN_ELEMENT_ITEM_AWARE_ELEMENT).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).abstractType();
    itemSubjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_SUBJECT_REF).qNameAttributeReference(ItemDefinition.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    dataStateChild = sequenceBuilder.element(DataState.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) ItemAwareElement(org.camunda.bpm.model.bpmn.instance.ItemAwareElement)

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