Пример #1
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Assignment), BPMN_ELEMENT_ASSIGNMENT).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            fromChild = sequenceBuilder.element(typeof(From)).required().build();

            toChild = sequenceBuilder.element(typeof(To)).required().build();

            typeBuilder.build();
        }
Пример #2
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaConnector), CAMUNDA_ELEMENT_CONNECTOR).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            camundaConnectorIdChild = sequenceBuilder.element(typeof(CamundaConnectorId)).required().build();

            camundaInputOutputChild = sequenceBuilder.element(typeof(CamundaInputOutput)).build();

            typeBuilder.build();
        }
Пример #3
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ParticipantAssociation), BPMN_ELEMENT_PARTICIPANT_ASSOCIATION).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            innerParticipantRefChild = sequenceBuilder.element(typeof(InnerParticipantRef)).required().qNameElementReference(typeof(Participant)).build();

            outerParticipantRefChild = sequenceBuilder.element(typeof(OuterParticipantRef)).required().qNameElementReference(typeof(Participant)).build();

            typeBuilder.build();
        }
Пример #4
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(TimerEventDefinition), BPMN_ELEMENT_TIMER_EVENT_DEFINITION).namespaceUri(BPMN20_NS).extendsType(typeof(EventDefinition)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            timeDateChild = sequenceBuilder.element(typeof(TimeDate)).build();

            timeDurationChild = sequenceBuilder.element(typeof(TimeDuration)).build();

            timeCycleChild = sequenceBuilder.element(typeof(TimeCycle)).build();

            typeBuilder.build();
        }
Пример #5
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(MessageEventDefinition), BPMN_ELEMENT_MESSAGE_EVENT_DEFINITION).namespaceUri(BPMN20_NS).extendsType(typeof(EventDefinition)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF).qNameAttributeReference(typeof(Message)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            operationRefChild = sequenceBuilder.element(typeof(OperationRef)).qNameElementReference(typeof(Operation)).build();

            /// <summary>
            /// camunda extensions </summary>

            camundaClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CLASS).@namespace(CAMUNDA_NS).build();

            camundaDelegateExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DELEGATE_EXPRESSION).@namespace(CAMUNDA_NS).build();

            camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION).@namespace(CAMUNDA_NS).build();

            camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE).@namespace(CAMUNDA_NS).build();

            camundaTopicAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TOPIC).@namespace(CAMUNDA_NS).build();

            camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE).@namespace(CAMUNDA_NS).build();

            camundaTaskPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TASK_PRIORITY).@namespace(CAMUNDA_NS).build();

            typeBuilder.build();
        }
Пример #6
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaField), CAMUNDA_ELEMENT_FIELD).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            camundaNameAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_NAME).@namespace(CAMUNDA_NS).build();

            camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION).@namespace(CAMUNDA_NS).build();

            camundaStringValueAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_STRING_VALUE).@namespace(CAMUNDA_NS).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            camundaExpressionChild = sequenceBuilder.element(typeof(CamundaExpression)).build();

            camundaStringChild = sequenceBuilder.element(typeof(CamundaString)).build();

            typeBuilder.build();
        }
Пример #7
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(BpmnLabelStyle), BPMNDI_ELEMENT_BPMN_LABEL_STYLE).namespaceUri(BPMNDI_NS).extendsType(typeof(Style)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            fontChild = sequenceBuilder.element(typeof(Font)).required().build();

            typeBuilder.build();
        }
Пример #8
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaPotentialStarter), CAMUNDA_ELEMENT_POTENTIAL_STARTER).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            resourceAssignmentExpressionChild = sequenceBuilder.element(typeof(ResourceAssignmentExpression)).build();

            typeBuilder.build();
        }
Пример #9
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Label), DI_ELEMENT_LABEL).namespaceUri(DI_NS).extendsType(typeof(Node)).abstractType();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            boundsChild = sequenceBuilder.element(typeof(Bounds)).build();

            typeBuilder.build();
        }
Пример #10
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ResourceAssignmentExpression), BPMN_ELEMENT_RESOURCE_ASSIGNMENT_EXPRESSION).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            expressionChild = sequenceBuilder.element(typeof(Expression)).required().build();

            typeBuilder.build();
        }
Пример #11
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ResourceParameterBinding), BPMN_ELEMENT_RESOURCE_PARAMETER_BINDING).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            parameterRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PARAMETER_REF).required().qNameAttributeReference(typeof(ResourceParameter)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            expressionChild = sequenceBuilder.element(typeof(Expression)).required().build();

            typeBuilder.build();
        }
Пример #12
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(DiagramElement), DI_ELEMENT_DIAGRAM_ELEMENT).namespaceUri(DI_NS).abstractType();

            idAttribute = typeBuilder.stringAttribute(DI_ATTRIBUTE_ID).idAttribute().build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            extensionChild = sequenceBuilder.element(typeof(Extension)).build();

            typeBuilder.build();
        }
Пример #13
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ItemAwareElement), BPMN_ELEMENT_ITEM_AWARE_ELEMENT).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).abstractType();

            itemSubjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_SUBJECT_REF).qNameAttributeReference(typeof(ItemDefinition)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            dataStateChild = sequenceBuilder.element(typeof(DataState)).build();

            typeBuilder.build();
        }
Пример #14
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CorrelationPropertyRetrievalExpression), BPMN_ELEMENT_CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF).required().qNameAttributeReference(typeof(Message)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            messagePathChild = sequenceBuilder.element(typeof(MessagePath)).required().build();

            typeBuilder.build();
        }
Пример #15
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ComplexGateway), BPMN_ELEMENT_COMPLEX_GATEWAY).namespaceUri(BPMN20_NS).extendsType(typeof(Gateway)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            defaultAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DEFAULT).idAttributeReference(typeof(SequenceFlow)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            activationConditionChild = sequenceBuilder.element(typeof(ActivationCondition)).build();

            typeBuilder.build();
        }
Пример #16
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CorrelationPropertyBinding), BPMN_ELEMENT_CORRELATION_PROPERTY_BINDING).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            correlationPropertyRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_CORRELATION_PROPERTY_REF).required().qNameAttributeReference(typeof(CorrelationProperty)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            dataPathChild = sequenceBuilder.element(typeof(DataPath)).required().build();

            typeBuilder.build();
        }
Пример #17
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(TextAnnotation), BPMN_ELEMENT_TEXT_ANNOTATION).namespaceUri(BPMN20_NS).extendsType(typeof(Artifact)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            textFormatAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TEXT_FORMAT).defaultValue("text/plain").build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            textChild = sequenceBuilder.element(typeof(Text)).build();

            typeBuilder.build();
        }
Пример #18
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(DataObjectReference), BPMN_ELEMENT_DATA_OBJECT_REFERENCE).namespaceUri(BPMN20_NS).extendsType(typeof(FlowElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            itemSubjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_SUBJECT_REF).qNameAttributeReference(typeof(ItemDefinition)).build();

            dataObjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DATA_OBJECT_REF).idAttributeReference(typeof(DataObject)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            dataStateChild = sequenceBuilder.element(typeof(DataState)).build();

            typeBuilder.build();
        }
Пример #19
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(SequenceFlow), BPMN_ELEMENT_SEQUENCE_FLOW).namespaceUri(BPMN20_NS).extendsType(typeof(FlowElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            sourceRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SOURCE_REF).required().idAttributeReference(typeof(FlowNode)).build();

            targetRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TARGET_REF).required().idAttributeReference(typeof(FlowNode)).build();

            isImmediateAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_IS_IMMEDIATE).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            conditionExpressionCollection = sequenceBuilder.element(typeof(ConditionExpression)).build();

            typeBuilder.build();
        }
Пример #20
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(BpmnEdge), BPMNDI_ELEMENT_BPMN_EDGE).namespaceUri(BPMNDI_NS).extendsType(typeof(LabeledEdge)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            bpmnElementAttribute = typeBuilder.stringAttribute(BPMNDI_ATTRIBUTE_BPMN_ELEMENT).qNameAttributeReference(typeof(BaseElement)).build();

            sourceElementAttribute = typeBuilder.stringAttribute(BPMNDI_ATTRIBUTE_SOURCE_ELEMENT).qNameAttributeReference(typeof(DiagramElement)).build();

            targetElementAttribute = typeBuilder.stringAttribute(BPMNDI_ATTRIBUTE_TARGET_ELEMENT).qNameAttributeReference(typeof(DiagramElement)).build();

            messageVisibleKindAttribute = typeBuilder.enumAttribute(BPMNDI_ATTRIBUTE_MESSAGE_VISIBLE_KIND, typeof(MessageVisibleKind)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            bpmnLabelChild = sequenceBuilder.element(typeof(BpmnLabel)).build();

            typeBuilder.build();
        }
Пример #21
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ScriptTask), BPMN_ELEMENT_SCRIPT_TASK).namespaceUri(BPMN20_NS).extendsType(typeof(Task)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            scriptFormatAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SCRIPT_FORMAT).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            scriptChild = sequenceBuilder.element(typeof(Script)).build();

            /// <summary>
            /// camunda extensions </summary>

            camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE).@namespace(CAMUNDA_NS).build();

            camundaResourceAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESOURCE).@namespace(CAMUNDA_NS).build();

            typeBuilder.build();
        }
Пример #22
0
        public static void registerType(ModelBuilder modelBuilder)
        {
            ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(BpmnShape), BPMNDI_ELEMENT_BPMN_SHAPE).namespaceUri(BPMNDI_NS).extendsType(typeof(LabeledShape)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            bpmnElementAttribute = typeBuilder.stringAttribute(BPMNDI_ATTRIBUTE_BPMN_ELEMENT).qNameAttributeReference(typeof(BaseElement)).build();

            isHorizontalAttribute = typeBuilder.booleanAttribute(BPMNDI_ATTRIBUTE_IS_HORIZONTAL).build();

            isExpandedAttribute = typeBuilder.booleanAttribute(BPMNDI_ATTRIBUTE_IS_EXPANDED).build();

            isMarkerVisibleAttribute = typeBuilder.booleanAttribute(BPMNDI_ATTRIBUTE_IS_MARKER_VISIBLE).build();

            isMessageVisibleAttribute = typeBuilder.booleanAttribute(BPMNDI_ATTRIBUTE_IS_MESSAGE_VISIBLE).build();

            participantBandKindAttribute = typeBuilder.enumAttribute(BPMNDI_ATTRIBUTE_PARTICIPANT_BAND_KIND, typeof(ParticipantBandKind)).build();

            choreographyActivityShapeAttribute = typeBuilder.stringAttribute(BPMNDI_ATTRIBUTE_CHOREOGRAPHY_ACTIVITY_SHAPE).qNameAttributeReference(typeof(BpmnShape)).build();

            SequenceBuilder sequenceBuilder = typeBuilder.sequence();

            bpmnLabelChild = sequenceBuilder.element(typeof(BpmnLabel)).build();

            typeBuilder.build();
        }