Пример #1
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();
        }
Пример #2
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();
        }
Пример #3
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();
        }
Пример #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
        protected internal static IElementReferenceCollection EventDefinitionRefCollection;//IElementReferenceCollection<IEventDefinition, EventDefinitionRef>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <ICatchEvent>(/*typeof(ICatchEvent),*/ BpmnModelConstants.BpmnElementCatchEvent)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IEvent))
                                                   .AbstractType();

            ParallelMultipleAttribute = typeBuilder.BooleanAttribute(BpmnModelConstants.BpmnAttributeParallelMultiple).DefaultValue(false).Build();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            DataOutputCollection = sequenceBuilder.ElementCollection <IDataOutput>(/*typeof(IDataOutput)*/).Build/*<IDataOutput>*/ ();

            DataOutputAssociationCollection = sequenceBuilder.ElementCollection <IDataOutputAssociation>(/*typeof(IDataOutputAssociation)*/).Build/*<IDataOutputAssociation>*/ ();

            OutputSetChild = sequenceBuilder.Element <IOutputSet>(/*typeof(IOutputSet)*/).Build/*<IOutputSet>*/ ();

            EventDefinitionCollection = sequenceBuilder.ElementCollection <IEventDefinition>(/*typeof(IEventDefinition)*/).Build/*<IEventDefinition>*/ ();

            EventDefinitionRefCollection = sequenceBuilder
                                           .ElementCollection <EventDefinitionRef>(/*typeof(EventDefinitionRef)*/)
                                           .QNameElementReferenceCollection <IEventDefinition>(/*typeof(IEventDefinition)*/)
                                           .Build();

            typeBuilder.Build();
        }
Пример #6
0
        protected internal static IElementReferenceCollection EventDefinitionRefCollection;//IElementReferenceCollection<IEventDefinition, EventDefinitionRef>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IThrowEvent>(/*typeof(IThrowEvent),*/ BpmnModelConstants.BpmnElementThrowEvent)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IEvent))
                                                   .AbstractType();

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            DataInputCollection = sequenceBuilder
                                  .ElementCollection <IDataInput>(/*typeof(IDataInput)*/)
                                  .Build/*<IDataInput>*/ ();

            DataInputAssociationCollection = sequenceBuilder
                                             .ElementCollection <IDataInputAssociation>(/*typeof(IDataInputAssociation)*/)
                                             .Build/*<IDataInputAssociation>*/ ();

            InputSetChild = sequenceBuilder
                            .Element <INputSet>(/*typeof(INputSet)*/)
                            .Build/*<INputSet>*/ ();

            EventDefinitionCollection = sequenceBuilder
                                        .ElementCollection <IEventDefinition>(/*typeof(IEventDefinition)*/)
                                        .Build/*<IEventDefinition>*/ ();

            EventDefinitionRefCollection = sequenceBuilder
                                           .ElementCollection <EventDefinitionRef>(/*typeof(EventDefinitionRef)*/)
                                           .QNameElementReferenceCollection <IEventDefinition>(/*typeof(IEventDefinition)*/)
                                           .Build();

            typeBuilder.Build();
        }
Пример #7
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();
        }
Пример #8
0
        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IDataAssociation>(/*typeof(IDataAssociation),*/ BpmnModelConstants.BpmnElementDataAssociation)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass());

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            SourceRefCollection = sequenceBuilder
                                  .ElementCollection <SourceRef>(/*typeof(SourceRef)*/)
                                  .IdElementReferenceCollection <IItemAwareElement>(/*typeof(IItemAwareElement)*/)
                                  .Build();

            TargetRefChild = sequenceBuilder
                             .Element <TargetRef>(/*typeof(TargetRef)*/)
                             .Required()
                             .IdElementReference <IItemAwareElement>(/*typeof(IItemAwareElement)*/)
                             .Build();

            TransformationChild = sequenceBuilder.Element <Transformation>(/*typeof(Transformation)*/).Build/*<Transformation>*/ ();

            AssignmentCollection = sequenceBuilder.ElementCollection <IAssignment>(/*typeof(IAssignment)*/).Build/*<IAssignment>*/ ();

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            OutputDecisionRefCollection = sequenceBuilder
                                          .ElementCollection <IOutputDecisionReference>(/*typeof(IOutputDecisionReference)*/)
                                          .Required()
                                          .UriElementReferenceCollection <IDecision>(/*typeof(IDecision)*/)
                                          .Build();

            EncapsulatedDecisionRefCollection = sequenceBuilder
                                                .ElementCollection <IEncapsulatedDecisionReference>(/*typeof(IEncapsulatedDecisionReference)*/)
                                                .UriElementReferenceCollection <IDecision>(/*typeof(IDecision)*/)
                                                .Build();

            InputDecisionRefCollection = sequenceBuilder
                                         .ElementCollection <INputDecisionReference>(/*typeof(INputDecisionReference)*/)
                                         .UriElementReferenceCollection <IDecision>(/*typeof(IDecision)*/)
                                         .Build();

            InputDataRefCollection = sequenceBuilder
                                     .ElementCollection <INputDataReference>(/*typeof(INputDataReference)*/)
                                     .UriElementReferenceCollection <INputData>(/*typeof(INputData)*/)
                                     .Build();

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            DrgElementRefCollection = sequenceBuilder
                                      .ElementCollection <IDrgElementReference>(/*typeof(IDrgElementReference)*/)
                                      .UriElementReferenceCollection <IDrgElement>(/*typeof(IDrgElement)*/)
                                      .Build();

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            ImpactingDecisionRefCollection = sequenceBuilder
                                             .ElementCollection <IMpactingDecisionReference>(/*typeof(IMpactingDecisionReference)*/)
                                             .UriElementReferenceCollection <IDecision>(/*typeof(IDecision)*/)
                                             .Build();

            typeBuilder.Build();
        }
Пример #12
0
        protected internal static IElementReferenceCollection CorrelationPropertyRefCollection;//IElementReferenceCollection<ICorrelationProperty, CorrelationPropertyRef>

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

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            CorrelationPropertyRefCollection = sequenceBuilder
                                               .ElementCollection <CorrelationPropertyRef>(/*typeof(CorrelationPropertyRef)*/)
                                               .QNameElementReferenceCollection <ICorrelationProperty>(/*typeof(ICorrelationProperty)*/)
                                               .Build();

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            IncomingCollection = sequenceBuilder
                                 .ElementCollection <Incoming>(/*typeof(Incoming)*/)
                                 .QNameElementReferenceCollection <ISequenceFlow>(/*typeof(ISequenceFlow)*/)
                                 .Build();

            OutgoingCollection = sequenceBuilder
                                 .ElementCollection <Outgoing>(/*typeof(Outgoing)*/)
                                 .QNameElementReferenceCollection <ISequenceFlow>(/*typeof(ISequenceFlow)*/)
                                 .Build();

            camundaAsyncAfter = typeBuilder
                                .BooleanAttribute(BpmnModelConstants.CamundaAttributeAsyncAfter)
                                .Namespace(BpmnModelConstants.CamundaNs)
                                .DefaultValue(false)
                                .Build();

            camundaAsyncBefore = typeBuilder
                                 .BooleanAttribute(BpmnModelConstants.CamundaAttributeAsyncBefore)
                                 .Namespace(BpmnModelConstants.CamundaNs)
                                 .DefaultValue(false)
                                 .Build();

            camundaExclusive = typeBuilder
                               .BooleanAttribute(BpmnModelConstants.CamundaAttributeExclusive)
                               .Namespace(BpmnModelConstants.CamundaNs)
                               .DefaultValue(true)
                               .Build();

            camundaJobPriority = typeBuilder
                                 .StringAttribute(BpmnModelConstants.CamundaAttributeJobPriority)
                                 .Namespace(BpmnModelConstants.CamundaNs)
                                 .Build();

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            DecisionDecisionMadeRefCollection = sequenceBuilder
                                                .ElementCollection <IDecisionMadeReference>(/*typeof(IDecisionMadeReference)*/)
                                                .UriElementReferenceCollection <IDecision>(/*typeof(IDecision)*/)
                                                .Build();

            DecisionDecisionOwnedRefCollection = sequenceBuilder
                                                 .ElementCollection <IDecisionOwnedReference>(/*typeof(IDecisionOwnedReference)*/)
                                                 .UriElementReferenceCollection <IDecision>(/*typeof(IDecision)*/)
                                                 .Build();

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

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            SupportedInterfaceRefCollection = sequenceBuilder.ElementCollection <SupportedInterfaceRef>(/*typeof(SupportedInterfaceRef)*/)
                                              .QNameElementReferenceCollection <INterface>(/*typeof(INterface)*/)
                                              .Build();

            IoSpecificationChild = sequenceBuilder.Element <IOSpecification>(/*typeof(IOSpecification)*/).Build/*<IOSpecification>*/ ();

            IoBindingCollection = sequenceBuilder.ElementCollection <IOBinding>(/*typeof(IOBinding)*/).Build/*<IOBinding>*/ ();

            typeBuilder.Build();
        }
Пример #16
0
        protected internal static IElementReferenceCollection CategoryValueRefCollection;//IElementReferenceCollection<ICategoryValue, CategoryValueRef>

        public new static void RegisterType(ModelBuilder modelBuilder)
        {
            IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IFlowElement>(/*typeof(IFlowElement),*/ BpmnModelConstants.BpmnElementFlowElement)
                                                   .NamespaceUri(BpmnModelConstants.Bpmn20Ns)
                                                   .ExtendsType(typeof(IBaseElement))
                                                   .AbstractType();

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            AuditingChild = sequenceBuilder.Element <IAuditing>(/*typeof(IAuditing)*/).Build/*<IAuditing>*/ ();

            MonitoringChild = sequenceBuilder.Element <IMonitoring>(/*typeof(IMonitoring)*/).Build/*<IMonitoring>*/ ();

            CategoryValueRefCollection = sequenceBuilder
                                         .ElementCollection <CategoryValueRef>(/*typeof(CategoryValueRef)*/)
                                         .QNameElementReferenceCollection <ICategoryValue>(/*typeof(ICategoryValue)*/)
                                         .Build();

            typeBuilder.Build();
        }
Пример #17
0
        protected internal static IElementReference TargetChild;                //IElementReference<ILinkEventDefinition, Target>

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

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

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            SourceCollection = sequenceBuilder
                               .ElementCollection <Source>(/*typeof(Source)*/)
                               .QNameElementReferenceCollection <ILinkEventDefinition>(/*typeof(ILinkEventDefinition)*/)
                               .Build();

            TargetChild = sequenceBuilder.Element <Target>(/*typeof(Target)*/)
                          .QNameElementReference <ILinkEventDefinition>(/*typeof(ILinkEventDefinition)*/)
                          .Build();

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

            ProcessTypeAttribute = typeBuilder
                                   .EnumAttribute <ProcessType>(BpmnModelConstants.BpmnAttributeProcessType /*, typeof(ProcessType)*/)
                                   .DefaultValue(ProcessType.None)
                                   .Build();

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

            IsExecutableAttribute = typeBuilder
                                    .BooleanAttribute(BpmnModelConstants.BpmnAttributeIsExecutable)
                                    .Build();

            // TODO: definitionalCollaborationRef

            ISequenceBuilder sequenceBuilder = typeBuilder.Sequence();

            AuditingChild = sequenceBuilder
                            .Element <IAuditing>(/*typeof(IAuditing)*/)
                            .Build/*<IAuditing>*/ ();

            MonitoringChild = sequenceBuilder
                              .Element <IMonitoring>(/*typeof(IMonitoring)*/)
                              .Build/*<IMonitoring>*/ ();

            PropertyCollection = sequenceBuilder
                                 .ElementCollection <IProperty>(/*typeof(IProperty)*/)
                                 .Build/*<IProperty>*/ ();

            LaneSetCollection = sequenceBuilder
                                .ElementCollection <ILaneSet>(/*typeof(ILaneSet)*/)
                                .Build/*<ILaneSet>*/ ();

            FlowElementCollection = sequenceBuilder
                                    .ElementCollection <IFlowElement>(/*typeof(IFlowElement)*/)
                                    .Build/*<IFlowElement>*/ ();

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

            ResourceRoleCollection = sequenceBuilder
                                     .ElementCollection <IResourceRole>(/*typeof(IResourceRole)*/)
                                     .Build/*<IResourceRole>*/ ();

            CorrelationSubscriptionCollection = sequenceBuilder
                                                .ElementCollection <ICorrelationSubscription>(/*typeof(ICorrelationSubscription)*/)
                                                .Build/*<ICorrelationSubscription>*/ ();

            SupportsCollection = sequenceBuilder.ElementCollection <Supports>(/*typeof(Supports)*/)
                                 .QNameElementReferenceCollection <IProcess>(/*typeof(IProcess)*/)
                                 .Build();

            CamundaCandidateStarterGroupsAttribute = typeBuilder
                                                     .StringAttribute(BpmnModelConstants.CamundaAttributeCandidateStarterGroups)
                                                     .Namespace(BpmnModelConstants.CamundaNs)
                                                     .Build();

            CamundaCandidateStarterUsersAttribute = typeBuilder
                                                    .StringAttribute(BpmnModelConstants.CamundaAttributeCandidateStarterUsers)
                                                    .Namespace(BpmnModelConstants.CamundaNs)
                                                    .Build();

            CamundaJobPriorityAttribute = typeBuilder
                                          .StringAttribute(BpmnModelConstants.CamundaAttributeJobPriority)
                                          .Namespace(BpmnModelConstants.CamundaNs)
                                          .Build();

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

            CamundaHistoryTimeToLiveAttribute = typeBuilder
                                                .StringAttribute(BpmnModelConstants.CamundaAttributeHistoryTimeToLive)
                                                .Namespace(BpmnModelConstants.CamundaNs)
                                                .Build();

            typeBuilder.Build();
        }