public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Animal), TYPE_NAME_ANIMAL).namespaceUri(MODEL_NAMESPACE).abstractType(); idAttr = typeBuilder.stringAttribute(ATTRIBUTE_NAME_ID).idAttribute().build(); nameAttr = typeBuilder.stringAttribute(ATTRIBUTE_NAME_NAME).build(); fatherRef = typeBuilder.stringAttribute(ATTRIBUTE_NAME_FATHER).qNameAttributeReference(typeof(Animal)).build(); motherRef = typeBuilder.stringAttribute(ATTRIBUTE_NAME_MOTHER).idAttributeReference(typeof(Animal)).build(); isEndangeredAttr = typeBuilder.booleanAttribute(ATTRIBUTE_NAME_IS_ENDANGERED).defaultValue(false).build(); genderAttr = typeBuilder.enumAttribute(ATTRIBUTE_NAME_GENDER, typeof(Gender)).required().build(); ageAttr = typeBuilder.integerAttribute(ATTRIBUTE_NAME_AGE).build(); bestFriendsRefCollection = typeBuilder.stringAttribute(ATTRIBUTE_NAME_BEST_FRIEND_REFS).idAttributeReferenceCollection(typeof(Animal), typeof(AnimalAttributeReferenceCollection)).build(); SequenceBuilder sequence = typeBuilder.sequence(); relationshipDefinitionsColl = sequence.elementCollection(typeof(RelationshipDefinition)).build(); relationshipDefinitionRefsColl = sequence.elementCollection(typeof(RelationshipDefinitionRef)).qNameElementReferenceCollection(typeof(RelationshipDefinition)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder bpmnModelBuilder) { ModelElementTypeBuilder typeBuilder = bpmnModelBuilder.defineType(typeof(Definitions), BPMN_ELEMENT_DEFINITIONS).namespaceUri(BPMN20_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); idAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ID).idAttribute().build(); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build(); targetNamespaceAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TARGET_NAMESPACE).required().build(); expressionLanguageAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_EXPRESSION_LANGUAGE).defaultValue(XPATH_NS).build(); typeLanguageAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TYPE_LANGUAGE).defaultValue(XML_SCHEMA_NS).build(); exporterAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_EXPORTER).build(); exporterVersionAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_EXPORTER_VERSION).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); importCollection = sequenceBuilder.elementCollection(typeof(Import)).build(); extensionCollection = sequenceBuilder.elementCollection(typeof(Extension)).build(); rootElementCollection = sequenceBuilder.elementCollection(typeof(RootElement)).build(); bpmnDiagramCollection = sequenceBuilder.elementCollection(typeof(BpmnDiagram)).build(); relationshipCollection = sequenceBuilder.elementCollection(typeof(Relationship)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Activity), BPMN_ELEMENT_ACTIVITY).namespaceUri(BPMN20_NS).extendsType(typeof(FlowNode)).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(typeof(SequenceFlow)).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); ioSpecificationChild = sequenceBuilder.element(typeof(IoSpecification)).build(); propertyCollection = sequenceBuilder.elementCollection(typeof(Property)).build(); dataInputAssociationCollection = sequenceBuilder.elementCollection(typeof(DataInputAssociation)).build(); dataOutputAssociationCollection = sequenceBuilder.elementCollection(typeof(DataOutputAssociation)).build(); resourceRoleCollection = sequenceBuilder.elementCollection(typeof(ResourceRole)).build(); loopCharacteristicsChild = sequenceBuilder.element(typeof(LoopCharacteristics)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Collaboration), BPMN_ELEMENT_COLLABORATION).namespaceUri(BPMN20_NS).extendsType(typeof(RootElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build(); isClosedAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_IS_CLOSED).defaultValue(false).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); participantCollection = sequenceBuilder.elementCollection(typeof(Participant)).build(); messageFlowCollection = sequenceBuilder.elementCollection(typeof(MessageFlow)).build(); artifactCollection = sequenceBuilder.elementCollection(typeof(Artifact)).build(); conversationNodeCollection = sequenceBuilder.elementCollection(typeof(ConversationNode)).build(); conversationAssociationCollection = sequenceBuilder.elementCollection(typeof(ConversationAssociation)).build(); participantAssociationCollection = sequenceBuilder.elementCollection(typeof(ParticipantAssociation)).build(); messageFlowAssociationCollection = sequenceBuilder.elementCollection(typeof(MessageFlowAssociation)).build(); correlationKeyCollection = sequenceBuilder.elementCollection(typeof(CorrelationKey)).build(); conversationLinkCollection = sequenceBuilder.elementCollection(typeof(ConversationLink)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaInputOutput), CAMUNDA_ELEMENT_INPUT_OUTPUT).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); camundaInputParameterCollection = sequenceBuilder.elementCollection(typeof(CamundaInputParameter)).build(); camundaOutputParameterCollection = sequenceBuilder.elementCollection(typeof(CamundaOutputParameter)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ConversationNode), BPMN_ELEMENT_CONVERSATION_NODE).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).abstractType(); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); participantRefCollection = sequenceBuilder.elementCollection(typeof(ParticipantRef)).qNameElementReferenceCollection(typeof(Participant)).build(); messageFlowRefCollection = sequenceBuilder.elementCollection(typeof(MessageFlowRef)).qNameElementReferenceCollection(typeof(MessageFlow)).build(); correlationKeyCollection = sequenceBuilder.elementCollection(typeof(CorrelationKey)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder bpmnModelBuilder) { ModelElementTypeBuilder typeBuilder = bpmnModelBuilder.defineType(typeof(CallableElement), BPMN_ELEMENT_CALLABLE_ELEMENT).namespaceUri(BPMN20_NS).extendsType(typeof(RootElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); supportedInterfaceRefCollection = sequenceBuilder.elementCollection(typeof(SupportedInterfaceRef)).qNameElementReferenceCollection(typeof(Interface)).build(); ioSpecificationChild = sequenceBuilder.element(typeof(IoSpecification)).build(); ioBindingCollection = sequenceBuilder.elementCollection(typeof(IoBinding)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(DataAssociation), BPMN_ELEMENT_DATA_ASSOCIATION).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); sourceRefCollection = sequenceBuilder.elementCollection(typeof(SourceRef)).idElementReferenceCollection(typeof(ItemAwareElement)).build(); targetRefChild = sequenceBuilder.element(typeof(TargetRef)).required().idElementReference(typeof(ItemAwareElement)).build(); transformationChild = sequenceBuilder.element(typeof(Transformation)).build(); assignmentCollection = sequenceBuilder.elementCollection(typeof(Assignment)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Relationship), BPMN_ELEMENT_RELATIONSHIP).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); typeAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TYPE).required().build(); directionAttribute = typeBuilder.enumAttribute(BPMN_ATTRIBUTE_DIRECTION, typeof(RelationshipDirection)).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); sourceCollection = sequenceBuilder.elementCollection(typeof(Source)).minOccurs(1).build(); targetCollection = sequenceBuilder.elementCollection(typeof(Target)).minOccurs(1).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(UserTask), BPMN_ELEMENT_USER_TASK).namespaceUri(BPMN20_NS).extendsType(typeof(Task)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION).defaultValue("##unspecified").build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); renderingCollection = sequenceBuilder.elementCollection(typeof(Rendering)).build(); /// <summary> /// camunda extensions </summary> camundaAssigneeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_ASSIGNEE).@namespace(CAMUNDA_NS).build(); camundaCandidateGroupsAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CANDIDATE_GROUPS).@namespace(CAMUNDA_NS).build(); camundaCandidateUsersAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CANDIDATE_USERS).@namespace(CAMUNDA_NS).build(); camundaDueDateAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DUE_DATE).@namespace(CAMUNDA_NS).build(); camundaFollowUpDateAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_FOLLOW_UP_DATE).@namespace(CAMUNDA_NS).build(); camundaFormHandlerClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_FORM_HANDLER_CLASS).@namespace(CAMUNDA_NS).build(); camundaFormKeyAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_FORM_KEY).@namespace(CAMUNDA_NS).build(); camundaPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_PRIORITY).@namespace(CAMUNDA_NS).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(IoSpecification), BPMN_ELEMENT_IO_SPECIFICATION).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); dataInputCollection = sequenceBuilder.elementCollection(typeof(DataInput)).build(); dataOutputCollection = sequenceBuilder.elementCollection(typeof(DataOutput)).build(); inputSetCollection = sequenceBuilder.elementCollection(typeof(InputSet)).required().build(); outputSetCollection = sequenceBuilder.elementCollection(typeof(OutputSet)).required().build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaFormProperty), CAMUNDA_ELEMENT_FORM_PROPERTY).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); camundaIdAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_ID).@namespace(CAMUNDA_NS).build(); camundaNameAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_NAME).@namespace(CAMUNDA_NS).build(); camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE).@namespace(CAMUNDA_NS).build(); camundaRequiredAttribute = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_REQUIRED).@namespace(CAMUNDA_NS).defaultValue(false).build(); camundaReadableAttribute = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_READABLE).@namespace(CAMUNDA_NS).defaultValue(true).build(); camundaWriteableAttribute = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_WRITEABLE).@namespace(CAMUNDA_NS).defaultValue(true).build(); camundaVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_VARIABLE).@namespace(CAMUNDA_NS).build(); camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION).@namespace(CAMUNDA_NS).build(); camundaDatePatternAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DATE_PATTERN).@namespace(CAMUNDA_NS).build(); camundaDefaultAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DEFAULT).@namespace(CAMUNDA_NS).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); camundaValueCollection = sequenceBuilder.elementCollection(typeof(CamundaValue)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Participant), BPMN_ELEMENT_PARTICIPANT).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build(); processRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PROCESS_REF).qNameAttributeReference(typeof(Process)).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); interfaceRefCollection = sequenceBuilder.elementCollection(typeof(InterfaceRef)).qNameElementReferenceCollection(typeof(Interface)).build(); endPointRefCollection = sequenceBuilder.elementCollection(typeof(EndPointRef)).qNameElementReferenceCollection(typeof(EndPoint)).build(); participantMultiplicityChild = sequenceBuilder.element(typeof(ParticipantMultiplicity)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(ThrowEvent), BPMN_ELEMENT_THROW_EVENT).namespaceUri(BPMN20_NS).extendsType(typeof(Event)).abstractType(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); dataInputCollection = sequenceBuilder.elementCollection(typeof(DataInput)).build(); dataInputAssociationCollection = sequenceBuilder.elementCollection(typeof(DataInputAssociation)).build(); inputSetChild = sequenceBuilder.element(typeof(InputSet)).build(); eventDefinitionCollection = sequenceBuilder.elementCollection(typeof(EventDefinition)).build(); eventDefinitionRefCollection = sequenceBuilder.elementCollection(typeof(EventDefinitionRef)).qNameElementReferenceCollection(typeof(EventDefinition)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Bird), ELEMENT_NAME_BIRD).namespaceUri(MODEL_NAMESPACE).extendsType(typeof(FlyingAnimal)).instanceProvider(new ModelElementTypeBuilder_ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequence = typeBuilder.sequence(); eggColl = sequence.elementCollection(typeof(Egg)).minOccurs(0).maxOccurs(6).build(); spouseRefsColl = sequence.element(typeof(SpouseRef)).qNameElementReference(typeof(Bird)).build(); guardEggRefCollection = sequence.elementCollection(typeof(GuardEgg)).idsElementReferenceCollection(typeof(Egg)).build(); canHazExtendedWings_Renamed = typeBuilder.booleanAttribute("canHazExtendedWings").@namespace(TestModelConstants.NEWER_NAMESPACE).build(); wings = sequence.element(typeof(Wings)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(InputSet), BPMN_ELEMENT_INPUT_SET).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); nameAttribute = typeBuilder.stringAttribute("name").build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); dataInputDataInputRefsCollection = sequenceBuilder.elementCollection(typeof(DataInputRefs)).idElementReferenceCollection(typeof(DataInput)).build(); optionalInputRefsCollection = sequenceBuilder.elementCollection(typeof(OptionalInputRefs)).idElementReferenceCollection(typeof(DataInput)).build(); whileExecutingInputRefsCollection = sequenceBuilder.elementCollection(typeof(WhileExecutingInputRefs)).idElementReferenceCollection(typeof(DataInput)).build(); outputSetOutputSetRefsCollection = sequenceBuilder.elementCollection(typeof(OutputSetRefs)).idElementReferenceCollection(typeof(OutputSet)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaFormData), CAMUNDA_ELEMENT_FORM_DATA).namespaceUri(BpmnModelConstants.CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); camundaFormFieldCollection = sequenceBuilder.elementCollection(typeof(CamundaFormField)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaMap), BpmnModelConstants.CAMUNDA_ELEMENT_MAP).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); camundaEntryCollection = sequenceBuilder.elementCollection(typeof(CamundaEntry)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(SubConversation), BPMN_ELEMENT_SUB_CONVERSATION).namespaceUri(BPMN20_NS).extendsType(typeof(ConversationNode)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); conversationNodeCollection = sequenceBuilder.elementCollection(typeof(ConversationNode)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Plane), DI_ELEMENT_PLANE).namespaceUri(DI_NS).extendsType(typeof(Node)).abstractType(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); diagramElementCollection = sequenceBuilder.elementCollection(typeof(DiagramElement)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Event), BPMN_ELEMENT_EVENT).namespaceUri(BPMN20_NS).extendsType(typeof(FlowNode)).abstractType(); SequenceBuilder sequence = typeBuilder.sequence(); propertyCollection = sequence.elementCollection(typeof(Property)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaValidation), CAMUNDA_ELEMENT_VALIDATION).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); camundaConstraintCollection = sequenceBuilder.elementCollection(typeof(CamundaConstraint)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Edge), DI_ELEMENT_EDGE).namespaceUri(DI_NS).extendsType(typeof(DiagramElement)).abstractType(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); waypointCollection = sequenceBuilder.elementCollection(typeof(Waypoint)).minOccurs(2).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CamundaProperties), CAMUNDA_ELEMENT_PROPERTIES).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); camundaPropertyCollection = sequenceBuilder.elementCollection(typeof(CamundaProperty)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CatchEvent), BPMN_ELEMENT_CATCH_EVENT).namespaceUri(BPMN20_NS).extendsType(typeof(Event)).abstractType(); parallelMultipleAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_PARALLEL_MULTIPLE).defaultValue(false).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); dataOutputCollection = sequenceBuilder.elementCollection(typeof(DataOutput)).build(); dataOutputAssociationCollection = sequenceBuilder.elementCollection(typeof(DataOutputAssociation)).build(); outputSetChild = sequenceBuilder.element(typeof(OutputSet)).build(); eventDefinitionCollection = sequenceBuilder.elementCollection(typeof(EventDefinition)).build(); eventDefinitionRefCollection = sequenceBuilder.elementCollection(typeof(EventDefinitionRef)).qNameElementReferenceCollection(typeof(EventDefinition)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(LaneSet), BPMN_ELEMENT_LANE_SET).namespaceUri(BPMN20_NS).extendsType(typeof(BaseElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); laneCollection = sequenceBuilder.elementCollection(typeof(Lane)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(SubProcess), BPMN_ELEMENT_SUB_PROCESS).namespaceUri(BPMN20_NS).extendsType(typeof(Activity)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); triggeredByEventAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_TRIGGERED_BY_EVENT).defaultValue(false).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); laneSetCollection = sequenceBuilder.elementCollection(typeof(LaneSet)).build(); flowElementCollection = sequenceBuilder.elementCollection(typeof(FlowElement)).build(); artifactCollection = sequenceBuilder.elementCollection(typeof(Artifact)).build(); /// <summary> /// camunda extensions </summary> camundaAsyncAttribute = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_ASYNC).@namespace(CAMUNDA_NS).defaultValue(false).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(CallConversation), BPMN_ELEMENT_CALL_CONVERSATION).namespaceUri(BPMN20_NS).extendsType(typeof(ConversationNode)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); calledCollaborationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_CALLED_COLLABORATION_REF).qNameAttributeReference(typeof(GlobalConversation)).build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); participantAssociationCollection = sequenceBuilder.elementCollection(typeof(ParticipantAssociation)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(Resource), BPMN_ELEMENT_RESOURCE).namespaceUri(BPMN20_NS).extendsType(typeof(RootElement)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); resourceParameterCollection = sequenceBuilder.elementCollection(typeof(ResourceParameter)).build(); typeBuilder.build(); }
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(typeof(BpmnDiagram), BPMNDI_ELEMENT_BPMN_DIAGRAM).namespaceUri(BPMNDI_NS).extendsType(typeof(Diagram)).instanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); bpmnPlaneChild = sequenceBuilder.element(typeof(BpmnPlane)).required().build(); bpmnLabelStyleCollection = sequenceBuilder.elementCollection(typeof(BpmnLabelStyle)).build(); typeBuilder.build(); }