Пример #1
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IBpmnShape>(/*typeof(IBpmnShape),*/ BpmnModelConstants.BpmndiElementBpmnShape)
                                                   .NamespaceUri(BpmnModelConstants.BpmndiNs)
                                                   .ExtendsType(typeof(ILabeledShape))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            BpmnElementAttribute = typeBuilder
                                   .StringAttribute(BpmnModelConstants.BpmndiAttributeBpmnElement)
                                   .QNameAttributeReference <IBaseElement>(/*typeof(IBaseElement)*/)
                                   .Build();

            IsHorizontalAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.BpmndiAttributeIsHorizontal).Build();

            IsExpandedAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.BpmndiAttributeIsExpanded).Build();

            IsMarkerVisibleAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.BpmndiAttributeIsMarkerVisible).Build();

            IsMessageVisibleAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.BpmndiAttributeIsMessageVisible).Build();

            ParticipantBandKindAttribute = typeBuilder.EnumAttribute <ParticipantBandKind>(BpmnModelConstants.BpmndiAttributeParticipantBandKind /*, typeof(ParticipantBandKind)*/).Build();

            ChoreographyActivityShapeAttribute = typeBuilder
                                                 .StringAttribute(BpmnModelConstants.BpmndiAttributeChoreographyActivityShape)
                                                 .QNameAttributeReference <IBpmnShape>(/*typeof(IBpmnShape)*/)
                                                 .Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            BpmnLabelChild = sequenceBuilder.Element <IBpmnLabel>(/*typeof(IBpmnLabel)*/).Build/*<IBpmnLabel>*/ ();

            typeBuilder.Build();
        }
Пример #2
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ISequenceFlow>(/*typeof(ISequenceFlow),*/ BpmnModelConstants.BpmnElementSequenceFlow)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IFlowElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            SourceRefAttribute = typeBuilder
                                 .StringAttribute(BpmnModelConstants.BpmnAttributeSourceRef)
                                 .Required()
                                 .IdAttributeReference <IFlowNode>(/*typeof(IFlowNode)*/)
                                 .Build();

            TargetRefAttribute = typeBuilder
                                 .StringAttribute(BpmnModelConstants.BpmnAttributeTargetRef)
                                 .Required()
                                 .IdAttributeReference <IFlowNode>(/*typeof(IFlowNode)*/)
                                 .Build();

            IsImmediateAttribute = typeBuilder
                                   .BooleanAttribute(BpmnModelConstants.BpmnAttributeIsImmediate)
                                   .Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ConditionExpressionCollection = sequenceBuilder
                                            .Element <IConditionExpression>(/*typeof(IConditionExpression)*/)
                                            .Build/*<IConditionExpression>*/ ();

            typeBuilder.Build();
        }
Пример #3
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IParticipant>(/*typeof(IParticipant),*/ BpmnModelConstants.BpmnElementParticipant)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            ProcessRefAttribute = typeBuilder
                                  .StringAttribute(BpmnModelConstants.BpmnAttributeProcessRef)
                                  .QNameAttributeReference <IProcess>(/*typeof(IProcess)*/)
                                  .Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            InterfaceRefCollection = sequenceBuilder
                                     .ElementCollection <InterfaceRef>(/*typeof(InterfaceRef)*/)
                                     .QNameElementReferenceCollection <INterface>(/*typeof(INterface)*/)
                                     .Build();

            EndPointRefCollection = sequenceBuilder
                                    .ElementCollection <EndPointRef>(/*typeof(EndPointRef)*/)
                                    .QNameElementReferenceCollection <IEndPoint>(/*typeof(IEndPoint)*/)
                                    .Build();

            ParticipantMultiplicityChild = sequenceBuilder.Element <IParticipantMultiplicity>(/*typeof(IParticipantMultiplicity)*/).Build/*<IParticipantMultiplicity>*/ ();

            typeBuilder.Build();
        }
Пример #4
0
        protected internal static IElementReferenceCollection ErrorRefCollection; //IElementReferenceCollection<IError, ErrorRef>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IOperation>(/*typeof(IOperation),*/ BpmnModelConstants.BpmnElementOperation)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Required().Build();

            ImplementationRefAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnElementImplementationRef).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            InMessageRefChild = sequenceBuilder
                                .Element <InMessageRef>(/*typeof(InMessageRef)*/)
                                .Required()
                                .QNameElementReference <IMessage>(/*typeof(IMessage)*/)
                                .Build();

            OutMessageRefChild = sequenceBuilder
                                 .Element <OutMessageRef>(/*typeof(OutMessageRef)*/)
                                 .QNameElementReference <IMessage>(/*typeof(IMessage)*/)
                                 .Build();

            ErrorRefCollection = sequenceBuilder
                                 .ElementCollection <ErrorRef>(/*typeof(ErrorRef)*/)
                                 .QNameElementReferenceCollection <IError>(/*typeof(IError)*/)
                                 .Build();

            typeBuilder.Build();
        }
Пример #5
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ILane>(/*typeof(ILane),*/ BpmnModelConstants.BpmnElementLane)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            PartitionElementRefAttribute = typeBuilder
                                           .StringAttribute(BpmnModelConstants.BpmnAttributePartitionElementRef)
                                           .QNameAttributeReference <PartitionElement>(/*typeof(PartitionElement)*/)
                                           .Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            partitionElementChild = sequenceBuilder.Element <PartitionElement>(/*typeof(PartitionElement)*/).Build/*<PartitionElement>*/ ();

            FlowNodeRefCollection = sequenceBuilder
                                    .ElementCollection <FlowNodeRef>(/*typeof(FlowNodeRef)*/)
                                    .IdElementReferenceCollection <IFlowNode>(/*typeof(IFlowNode)*/)
                                    .Build();

            ChildLaneSetChild = sequenceBuilder.Element <ChildLaneSet>(/*typeof(ChildLaneSet)*/).Build/*<ChildLaneSet>*/ ();

            typeBuilder.Build();
        }
Пример #6
0
        protected internal static IAttributeReference MessageRefAttribute; //IAttributeReference<IMessage>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IMessageFlow>(/*typeof(IMessageFlow),*/ BpmnModelConstants.BpmnElementMessageFlow)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            SourceRefAttribute = typeBuilder
                                 .StringAttribute(BpmnModelConstants.BpmnAttributeSourceRef)
                                 .Required()
                                 .QNameAttributeReference <IInteractionNode>(/*typeof(IInteractionNode)*/)
                                 .Build();

            TargetRefAttribute = typeBuilder
                                 .StringAttribute(BpmnModelConstants.BpmnAttributeTargetRef)
                                 .Required()
                                 .QNameAttributeReference <IInteractionNode>(/*typeof(IInteractionNode)*/)
                                 .Build();

            MessageRefAttribute = typeBuilder
                                  .StringAttribute(BpmnModelConstants.BpmnAttributeMessageRef)
                                  .QNameAttributeReference <IMessage>(/*typeof(IMessage)*/)
                                  .Build();

            typeBuilder.Build();
        }
Пример #7
0
        protected internal static IAttributeReference OutputDataRefAttribute; //IAttributeReference<IDataOutput>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IOBinding>(/*typeof(IOBinding),*/ BpmnModelConstants.BpmnElementIoBinding)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            OperationRefAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.BpmnAttributeOperationRef)
                                    .Required()
                                    .QNameAttributeReference <IOperation>(/*typeof(IOperation)*/)
                                    .Build();

            InputDataRefAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.BpmnAttributeInputDataRef)
                                    .Required()
                                    .IdAttributeReference <IDataInput>(/*typeof(IDataInput)*/)
                                    .Build();

            OutputDataRefAttribute = typeBuilder
                                     .StringAttribute(BpmnModelConstants.BpmnAttributeOutputDataRef)
                                     .Required()
                                     .IdAttributeReference <IDataOutput>(/*typeof(IDataOutput)*/)
                                     .Build();

            typeBuilder.Build();
        }
Пример #8
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IBpmnEdge>(/*typeof(IBpmnEdge),*/ BpmnModelConstants.BpmndiElementBpmnEdge)
                                                   .NamespaceUri(BpmnModelConstants.BpmndiNs)
                                                   .ExtendsType(typeof(ILabeledEdge))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            BpmnElementAttribute = typeBuilder
                                   .StringAttribute(BpmnModelConstants.BpmndiAttributeBpmnElement)
                                   .QNameAttributeReference <IBaseElement>(/*typeof(IBaseElement)*/)
                                   .Build();

            SourceElementAttribute = typeBuilder
                                     .StringAttribute(BpmnModelConstants.BpmndiAttributeSourceElement)
                                     .QNameAttributeReference <IDiagramElement>(/*typeof(IDiagramElement)*/)
                                     .Build();

            TargetElementAttribute = typeBuilder
                                     .StringAttribute(BpmnModelConstants.BpmndiAttributeTargetElement)
                                     .QNameAttributeReference <IDiagramElement>(/*typeof(IDiagramElement)*/)
                                     .Build();

            MessageVisibleKindAttribute = typeBuilder.EnumAttribute <MessageVisibleKind>(BpmnModelConstants.BpmndiAttributeMessageVisibleKind /*, typeof(MessageVisibleKind)*/).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            BpmnLabelChild = sequenceBuilder.Element <IBpmnLabel>(/*typeof(IBpmnLabel)*/).Build/*<IBpmnLabel>*/ ();

            typeBuilder.Build();
        }
Пример #9
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ISendTask>(/*typeof(ISendTask),*/ BpmnModelConstants.BpmnElementSendTask)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(ITask))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            ImplementationAttribute = typeBuilder
                                      .StringAttribute(BpmnModelConstants.BpmnAttributeImplementation)
                                      .DefaultValue("##WebService")
                                      .Build();

            MessageRefAttribute = typeBuilder
                                  .StringAttribute(BpmnModelConstants.BpmnAttributeMessageRef)
                                  .QNameAttributeReference <IMessage>(/*typeof(IMessage)*/)
                                  .Build();

            OperationRefAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.BpmnAttributeOperationRef)
                                    .QNameAttributeReference <IOperation>(/*typeof(IOperation)*/)
                                    .Build();


            CamundaClassAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.CamundaAttributeClass)
                                    .Namespace(BpmnModelConstants.CamundaNs)
                                    .Build();

            CamundaDelegateExpressionAttribute = typeBuilder
                                                 .StringAttribute(BpmnModelConstants.CamundaAttributeDelegateExpression)
                                                 .Namespace(BpmnModelConstants.CamundaNs)
                                                 .Build();

            CamundaExpressionAttribute = typeBuilder
                                         .StringAttribute(BpmnModelConstants.CamundaAttributeExpression)
                                         .Namespace(BpmnModelConstants.CamundaNs)
                                         .Build();

            CamundaResultVariableAttribute = typeBuilder
                                             .StringAttribute(BpmnModelConstants.CamundaAttributeResultVariable)
                                             .Namespace(BpmnModelConstants.CamundaNs)
                                             .Build();

            CamundaTopicAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.CamundaAttributeTopic)
                                    .Namespace(BpmnModelConstants.CamundaNs)
                                    .Build();

            CamundaTypeAttribute = typeBuilder
                                   .StringAttribute(BpmnModelConstants.CamundaAttributeType)
                                   .Namespace(BpmnModelConstants.CamundaNs)
                                   .Build();

            CamundaTaskPriorityAttribute = typeBuilder
                                           .StringAttribute(BpmnModelConstants.CamundaAttributeTaskPriority)
                                           .Namespace(BpmnModelConstants.CamundaNs)
                                           .Build();

            typeBuilder.Build();
        }
Пример #10
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ICamundaFormField>(/*typeof(ICamundaFormField),*/ BpmnModelConstants.CamundaElementFormField)
                                                   .NamespaceUri(BpmnModelConstants.CamundaNs)
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            CamundaIdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeId).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaLabelAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeLabel).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaTypeAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeType).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaDatePatternAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeDatePattern).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaDefaultValueAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeDefaultValue).Namespace(BpmnModelConstants.CamundaNs).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            CamundaPropertiesChild = sequenceBuilder.Element <ICamundaProperties>(/*typeof(ICamundaProperties)*/).Build/*<ICamundaProperties>*/ ();

            CamundaValidationChild = sequenceBuilder.Element <ICamundaValidation>(/*typeof(ICamundaValidation)*/).Build/*<ICamundaValidation>*/ ();

            CamundaValueCollection = sequenceBuilder.ElementCollection <ICamundaValue>(/*typeof(ICamundaValue)*/).Build/*<ICamundaValue>*/ ();

            typeBuilder.Build();
        }
Пример #11
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ICallActivity>(/*typeof(ICallActivity),*/ BpmnModelConstants.BpmnElementCallActivity)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IActivity))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            CalledElementAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeCalledElement).Build();

            CamundaAsyncAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.CamundaAttributeAsync).Namespace(BpmnModelConstants.CamundaNs).DefaultValue(false).Build();

            CamundaCalledElementBindingAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCalledElementBinding).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaCalledElementVersionAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCalledElementVersion).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaCaseRefAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCaseRef).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaCaseBindingAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCaseBinding).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaCaseVersionAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCaseVersion).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaCalledElementTenantIdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCalledElementTenantId).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaCaseTenantIdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeCaseTenantId).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaVariableMappingClassAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeVariableMappingClass).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaVariableMappingDelegateExpressionAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeVariableMappingDelegateExpression).Namespace(BpmnModelConstants.CamundaNs).Build();


            typeBuilder.Build();
        }
Пример #12
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IMport>(/*typeof(IMport), */ DmnModelConstants.DmnElementImport).NamespaceUri(DmnModelConstants.Dmn11Ns).InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NamespaceAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeNamespace).Required().Build();

            LocationUriAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeLocationUri).Build();

            ImportTypeAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeImportType).Required().Build();

            typeBuilder.Build();
        }
Пример #13
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IDocumentation>(/*typeof(IDocumentation),*/ BpmnModelConstants.BpmnElementDocumentation)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            IdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeId).IdAttribute().Build();

            TextFormatAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeTextFormat).DefaultValue("text/plain").Build();

            typeBuilder.Build();
        }
Пример #14
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ICamundaScript>(/*typeof(ICamundaScript),*/ BpmnModelConstants.CamundaElementScript)
                                                   .NamespaceUri(BpmnModelConstants.CamundaNs)
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            CamundaScriptFormatAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeScriptFormat).Required().Build();

            CamundaResourceAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeResource).Build();

            typeBuilder.Build();
        }
Пример #15
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ICamundaValue>(/*typeof(ICamundaValue),*/ BpmnModelConstants.CamundaElementValue)
                                                   .NamespaceUri(BpmnModelConstants.CamundaNs)
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            CamundaIdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeId).Namespace(BpmnModelConstants.CamundaNs).Build();

            CamundaNameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeName).Namespace(BpmnModelConstants.CamundaNs).Build();

            typeBuilder.Build();
        }
Пример #16
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IDiagram>(/*typeof(IDiagram),*/ BpmnModelConstants.DiElementDiagram)
                                                   .NamespaceUri(BpmnModelConstants.DiNs)
                                                   .AbstractType();

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.DiAttributeName).Build();

            DocumentationAttribute = typeBuilder.StringAttribute(BpmnModelConstants.DiAttributeDocumentation).Build();

            ResolutionAttribute = typeBuilder.DoubleAttribute(BpmnModelConstants.DiAttributeResolution).Build();

            IdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.DiAttributeId).IdAttribute().Build();

            typeBuilder.Build();
        }
Пример #17
0
        protected internal static IAttributeReference StructureRefAttribute;//IAttributeReference<IItemDefinition>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ISignal>(/*typeof(ISignal),*/ BpmnModelConstants.BpmnElementSignal)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IRootElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            StructureRefAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.BpmnAttributeStructureRef)
                                    .QNameAttributeReference <IItemDefinition>(/*typeof(IItemDefinition)*/)
                                    .Build();

            typeBuilder.Build();
        }
Пример #18
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IResourceRole>(/*typeof(IResourceRole), */ BpmnModelConstants.BpmnElementResourceRole)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder
                            .StringAttribute(BpmnModelConstants.BpmnAttributeName)
                            .Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ResourceRefChild = sequenceBuilder
                               .Element <ResourceRef>(/*typeof(ResourceRef)*/)
                               .QNameElementReference <Resources>(/*typeof(Resources)*/)
                               .Build();

            ResourceParameterBindingCollection = sequenceBuilder
                                                 .ElementCollection <IResourceParameterBinding>(/*typeof(IResourceParameterBinding)*/)
                                                 .Build/*<IResourceParameterBinding>*/ ();

            ResourceAssignmentExpressionChild = sequenceBuilder
                                                .Element <IResourceAssignmentExpression>(/*typeof(IResourceAssignmentExpression)*/)
                                                .Build/*<IResourceAssignmentExpression>*/ ();

            typeBuilder.Build();
        }
Пример #19
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ICollaboration>(/*typeof(ICollaboration),*/ BpmnModelConstants.BpmnElementCollaboration)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IRootElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            IsClosedAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.BpmnAttributeIsClosed).DefaultValue(false).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ParticipantCollection = sequenceBuilder.ElementCollection <IParticipant>(/*typeof(IParticipant)*/).Build/*<IParticipant>*/ ();

            MessageFlowCollection = sequenceBuilder.ElementCollection <IMessageFlow>(/*typeof(IMessageFlow)*/).Build/*<IMessageFlow>*/ ();

            ArtifactCollection = sequenceBuilder.ElementCollection <IArtifact>(/*typeof(IArtifact)*/).Build/*<IArtifact>*/ ();

            ConversationNodeCollection = sequenceBuilder.ElementCollection <IConversationNode>(/*typeof(IConversationNode)*/).Build/*<IConversationNode>*/ ();

            ConversationAssociationCollection = sequenceBuilder.ElementCollection <IConversationAssociation>(/*typeof(IConversationAssociation)*/).Build/*<IConversationAssociation>*/ ();

            ParticipantAssociationCollection = sequenceBuilder.ElementCollection <IParticipantAssociation>(/*typeof(IParticipantAssociation)*/).Build/*<IParticipantAssociation>*/ ();

            MessageFlowAssociationCollection = sequenceBuilder.ElementCollection <IMessageFlowAssociation>(/*typeof(IMessageFlowAssociation)*/).Build/*<IMessageFlowAssociation>*/ ();

            CorrelationKeyCollection = sequenceBuilder.ElementCollection <ICorrelationKey>(/*typeof(ICorrelationKey)*/).Build/*<ICorrelationKey>*/ ();

            ConversationLinkCollection = sequenceBuilder.ElementCollection <IConversationLink>(/*typeof(IConversationLink)*/).Build/*<IConversationLink>*/ ();

            typeBuilder.Build();
        }
Пример #20
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IConversationNode>(/*typeof(IConversationNode),*/ BpmnModelConstants.BpmnElementConversationNode)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .AbstractType();

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ParticipantRefCollection = sequenceBuilder
                                       .ElementCollection <ParticipantRef>(/*typeof(ParticipantRef)*/)
                                       .QNameElementReferenceCollection <IParticipant>(/*typeof(IParticipant)*/)
                                       .Build();

            MessageFlowRefCollection = sequenceBuilder
                                       .ElementCollection <MessageFlowRef>(/*typeof(MessageFlowRef)*/)
                                       .QNameElementReferenceCollection <IMessageFlow>(/*typeof(IMessageFlow)*/)
                                       .Build();

            CorrelationKeyCollection = sequenceBuilder.ElementCollection <ICorrelationKey>(/*typeof(ICorrelationKey)*/).Build/*<ICorrelationKey>*/ ();

            typeBuilder.Build();
        }
Пример #21
0
        protected internal static IElementReferenceCollection InputSetInputSetRefsCollection;     //IElementReferenceCollection<INputSet, InputSetRefs>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IOutputSet>(/*typeof(IOutputSet),*/ BpmnModelConstants.BpmnElementOutputSet)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            DataOutputRefsCollection = sequenceBuilder
                                       .ElementCollection <DataOutputRefs>(/*typeof(DataOutputRefs)*/)
                                       .IdElementReferenceCollection <IDataOutput>(/*typeof(IDataOutput)*/)
                                       .Build();

            OptionalOutputRefsCollection = sequenceBuilder
                                           .ElementCollection <OptionalOutputRefs>(/*typeof(OptionalOutputRefs)*/)
                                           .IdElementReferenceCollection <IDataOutput>(/*typeof(IDataOutput)*/)
                                           .Build();

            WhileExecutingOutputRefsCollection = sequenceBuilder
                                                 .ElementCollection <WhileExecutingOutputRefs>(/*typeof(WhileExecutingOutputRefs)*/)
                                                 .IdElementReferenceCollection <IDataOutput>(/*typeof(IDataOutput)*/)
                                                 .Build();

            InputSetInputSetRefsCollection = sequenceBuilder
                                             .ElementCollection <InputSetRefs>(/*typeof(InputSetRefs)*/)
                                             .IdElementReferenceCollection <INputSet>(/*typeof(INputSet)*/)
                                             .Build();

            typeBuilder.Build();
        }
Пример #22
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IMessageEventDefinition>(/*typeof(IMessageEventDefinition),*/ BpmnModelConstants.BpmnElementMessageEventDefinition)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IEventDefinition))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            MessageRefAttribute = typeBuilder
                                  .StringAttribute(BpmnModelConstants.BpmnAttributeMessageRef)
                                  .QNameAttributeReference <IMessage>(/*typeof(IMessage)*/)
                                  .Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            OperationRefChild = sequenceBuilder
                                .Element <OperationRef>(/*typeof(OperationRef)*/)
                                .QNameElementReference <IOperation>(/*typeof(IOperation)*/)
                                .Build();


            CamundaClassAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.CamundaAttributeClass)
                                    .Namespace(BpmnModelConstants.CamundaNs)
                                    .Build();

            CamundaDelegateExpressionAttribute = typeBuilder
                                                 .StringAttribute(BpmnModelConstants.CamundaAttributeDelegateExpression)
                                                 .Namespace(BpmnModelConstants.CamundaNs)
                                                 .Build();

            CamundaExpressionAttribute = typeBuilder
                                         .StringAttribute(BpmnModelConstants.CamundaAttributeExpression)
                                         .Namespace(BpmnModelConstants.CamundaNs)
                                         .Build();

            CamundaResultVariableAttribute = typeBuilder
                                             .StringAttribute(BpmnModelConstants.CamundaAttributeResultVariable)
                                             .Namespace(BpmnModelConstants.CamundaNs)
                                             .Build();

            CamundaTopicAttribute = typeBuilder
                                    .StringAttribute(BpmnModelConstants.CamundaAttributeTopic)
                                    .Namespace(BpmnModelConstants.CamundaNs)
                                    .Build();

            CamundaTypeAttribute = typeBuilder
                                   .StringAttribute(BpmnModelConstants.CamundaAttributeType)
                                   .Namespace(BpmnModelConstants.CamundaNs)
                                   .Build();

            CamundaTaskPriorityAttribute = typeBuilder
                                           .StringAttribute(BpmnModelConstants.CamundaAttributeTaskPriority)
                                           .Namespace(BpmnModelConstants.CamundaNs)
                                           .Build();

            typeBuilder.Build();
        }
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IConditionalEventDefinition>(/*typeof(IConditionalEventDefinition),*/ BpmnModelConstants.BpmnElementConditionalEventDefinition)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IEventDefinition))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ConditionChild = sequenceBuilder.Element <ICondition>(/*typeof(ICondition)*/).Required().Build/*<ICondition>*/ ();

            camundaVariableName = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeVariableName).Namespace(BpmnModelConstants.CamundaNs).Build();

            camundaVariableEvents = typeBuilder.StringAttribute(BpmnModelConstants.CamundaAttributeVariableEvents).Namespace(BpmnModelConstants.CamundaNs).Build();

            typeBuilder.Build();
        }
Пример #24
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <INamedElement>(/*typeof(INamedElement), */ DmnModelConstants.DmnElementNamedElement).NamespaceUri(DmnModelConstants.Dmn11Ns).ExtendsType(typeof(IDmnElement)).AbstractType();

            NameAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeName).Required().Build();

            typeBuilder.Build();
        }
Пример #25
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IExpression>(/*typeof(IExpression),*/ DmnModelConstants.DmnElementExpression).NamespaceUri(DmnModelConstants.Dmn11Ns).ExtendsType(typeof(IDmnElement)).AbstractType();

            TypeRefAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeTypeRef).Build();

            typeBuilder.Build();
        }
Пример #26
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <INterface>(/*typeof(INterface),*/ BpmnModelConstants.BpmnElementInterface)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IRootElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Required().Build();

            ImplementationRefAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeImplementationRef).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            OperationCollection = sequenceBuilder.ElementCollection <IOperation>(/*typeof(IOperation)*/).Required().Build/*<IOperation>*/ ();

            typeBuilder.Build();
        }
Пример #27
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IDmnElementReference>(/*typeof(IDmnElementReference),*/ DmnModelConstants.DmnElementReference).NamespaceUri(DmnModelConstants.Dmn11Ns).InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            HrefAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeHref).Required().Build();

            typeBuilder.Build();
        }
Пример #28
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <INformationItem>(/*typeof(INformationItem),*/ DmnModelConstants.DmnElementInformationItem).NamespaceUri(DmnModelConstants.Dmn11Ns).ExtendsType(typeof(INamedElement)).InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            TypeRefAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeTypeRef).Build();

            typeBuilder.Build();
        }
Пример #29
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IBusinessContextElement>(/*typeof(IBusinessContextElement),*/ DmnModelConstants.DmnElementBusinessContextElement).NamespaceUri(DmnModelConstants.Dmn11Ns).ExtendsType(typeof(INamedElement)).AbstractType();

            UriAttribute = typeBuilder.StringAttribute(DmnModelConstants.DmnAttributeUri).Build();

            typeBuilder.Build();
        }
Пример #30
0
        public new static void RegisterType(ModelBuilder bpmnModelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = bpmnModelBuilder.DefineType <IDefinitions>(/*typeof(IDefinitions),*/ BpmnModelConstants.BpmnElementDefinitions)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            IdAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeId).IdAttribute().Build();

            NameAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeName).Build();

            TargetNamespaceAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeTargetNamespace).Required().Build();

            ExpressionLanguageAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeExpressionLanguage).DefaultValue(BpmnModelConstants.XpathNs).Build();

            TypeLanguageAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeTypeLanguage).DefaultValue(BpmnModelConstants.XmlSchemaNs).Build();

            ExporterAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeExporter).Build();

            ExporterVersionAttribute = typeBuilder.StringAttribute(BpmnModelConstants.BpmnAttributeExporterVersion).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ImportCollection = sequenceBuilder.ElementCollection <IMport>(/*typeof(IMport)*/).Build/*<IMport>*/ ();

            ExtensionCollection = sequenceBuilder.ElementCollection <IExtension>(/*typeof(IExtension)*/).Build/*<IExtension>*/ ();

            RootElementCollection = sequenceBuilder.ElementCollection <IRootElement>(/*typeof(IRootElement)*/).Build/*<IRootElement>*/ ();

            BpmnDiagramCollection = sequenceBuilder.ElementCollection <IBpmnDiagram>(/*typeof(IBpmnDiagram)*/).Build/*<IBpmnDiagram>*/ ();

            RelationshipCollection = sequenceBuilder.ElementCollection <IRelationship>(/*typeof(IRelationship)*/).Build/*<IRelationship>*/ ();

            typeBuilder.Build();
        }