Search in sources :

Example 96 with SequenceBuilder

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

the class ResourceParameterBindingImpl method registerType.

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

        public ResourceParameterBinding newInstance(ModelTypeInstanceContext instanceContext) {
            return new ResourceParameterBindingImpl(instanceContext);
        }
    });
    parameterRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PARAMETER_REF).required().qNameAttributeReference(ResourceParameter.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    expressionChild = sequenceBuilder.element(Expression.class).required().build();
    typeBuilder.build();
}
Also used : BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) ResourceParameterBinding(org.camunda.bpm.model.bpmn.instance.ResourceParameterBinding) Expression(org.camunda.bpm.model.bpmn.instance.Expression) 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)

Example 97 with SequenceBuilder

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

the class ResourceRoleImpl method registerType.

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

        public ResourceRole newInstance(ModelTypeInstanceContext instanceContext) {
            return new ResourceRoleImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    resourceRefChild = sequenceBuilder.element(ResourceRef.class).qNameElementReference(Resource.class).build();
    resourceParameterBindingCollection = sequenceBuilder.elementCollection(ResourceParameterBinding.class).build();
    resourceAssignmentExpressionChild = sequenceBuilder.element(ResourceAssignmentExpression.class).build();
    typeBuilder.build();
}
Also used : 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)

Example 98 with SequenceBuilder

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

the class ThrowEventImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ThrowEvent.class, BPMN_ELEMENT_THROW_EVENT).namespaceUri(BPMN20_NS).extendsType(Event.class).abstractType();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    dataInputCollection = sequenceBuilder.elementCollection(DataInput.class).build();
    dataInputAssociationCollection = sequenceBuilder.elementCollection(DataInputAssociation.class).build();
    inputSetChild = sequenceBuilder.element(InputSet.class).build();
    eventDefinitionCollection = sequenceBuilder.elementCollection(EventDefinition.class).build();
    eventDefinitionRefCollection = sequenceBuilder.elementCollection(EventDefinitionRef.class).qNameElementReferenceCollection(EventDefinition.class).build();
    typeBuilder.build();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Example 99 with SequenceBuilder

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

the class ConversationNodeImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ConversationNode.class, BPMN_ELEMENT_CONVERSATION_NODE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).abstractType();
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    participantRefCollection = sequenceBuilder.elementCollection(ParticipantRef.class).qNameElementReferenceCollection(Participant.class).build();
    messageFlowRefCollection = sequenceBuilder.elementCollection(MessageFlowRef.class).qNameElementReferenceCollection(MessageFlow.class).build();
    correlationKeyCollection = sequenceBuilder.elementCollection(CorrelationKey.class).build();
    typeBuilder.build();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)

Example 100 with SequenceBuilder

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

the class CorrelationPropertyImpl method registerType.

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

        public CorrelationProperty newInstance(ModelTypeInstanceContext instanceContext) {
            return new CorrelationPropertyImpl(instanceContext);
        }
    });
    nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
    typeAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TYPE).qNameAttributeReference(ItemDefinition.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    correlationPropertyRetrievalExpressionCollection = sequenceBuilder.elementCollection(CorrelationPropertyRetrievalExpression.class).required().build();
    typeBuilder.build();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceProvider(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder.ModelTypeInstanceProvider) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) CorrelationPropertyRetrievalExpression(org.camunda.bpm.model.bpmn.instance.CorrelationPropertyRetrievalExpression)

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