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(); }
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(); }
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(); }
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(); }
private bool IsNamesMatch(ICatalogueElement element) { // Only have to check if there is a filter. if (m_elementReferencePattern != null) { Debug.Assert(m_elementReferenceRegex != null, "m_elementReferenceRegex is null - Prepare()" + " not called?"); IElementReference referencedElement = element as IElementReference; if (referencedElement != null && !m_elementReferenceRegex.IsMatch(referencedElement.FullyQualifiedReference)) { return(false); } } return(true); }
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(); }
protected internal static IElementReference OuterParticipantRefChild; //IElementReference<IParticipant, OuterParticipantRef> public new static void RegisterType(ModelBuilder modelBuilder) { IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IParticipantAssociation>(/*typeof(IParticipantAssociation),*/ BpmnModelConstants.BpmnElementParticipantAssociation) .NamespaceUri(BpmnModelConstants.Bpmn20Ns) .ExtendsType(typeof(IBaseElement)) .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); ISequenceBuilder sequenceBuilder = typeBuilder.Sequence(); InnerParticipantRefChild = sequenceBuilder .Element <InnerParticipantRef>(/*typeof(InnerParticipantRef)*/) .Required() .QNameElementReference <IParticipant>(/*typeof(IParticipant)*/) .Build(); OuterParticipantRefChild = sequenceBuilder .Element <OuterParticipantRef>(/*typeof(OuterParticipantRef)*/) .Required() .QNameElementReference <IParticipant>(/*typeof(IParticipant)*/) .Build(); typeBuilder.Build(); }
public new static void RegisterType(ModelBuilder modelBuilder) { IModelElementTypeBuilder typeBuilder = modelBuilder.DefineType <IMultiInstanceLoopCharacteristics>(/*typeof(IMultiInstanceLoopCharacteristics),*/ BpmnModelConstants.BpmnElementMultiInstanceLoopCharacteristics) .NamespaceUri(BpmnModelConstants.Bpmn20Ns) .ExtendsType(typeof(ILoopCharacteristics)) .InstanceProvider(new ModelTypeInstanceProviderAnonymousInnerClass()); IsSequentialAttribute = typeBuilder .BooleanAttribute(BpmnModelConstants.BpmnElementIsSequential) .DefaultValue(false) .Build(); BehaviorAttribute = typeBuilder .EnumAttribute <MultiInstanceFlowCondition>(BpmnModelConstants.BpmnElementBehavior /*, typeof(MultiInstanceFlowCondition)*/) .DefaultValue(MultiInstanceFlowCondition.All) .Build(); OneBehaviorEventRefAttribute = typeBuilder .StringAttribute(BpmnModelConstants.BpmnElementOneBehaviorEventRef) .QNameAttributeReference <IEventDefinition>(/*typeof(IEventDefinition)*/) .Build(); NoneBehaviorEventRefAttribute = typeBuilder .StringAttribute(BpmnModelConstants.BpmnElementNoneBehaviorEventRef) .QNameAttributeReference <IEventDefinition>(/*typeof(IEventDefinition)*/) .Build(); ISequenceBuilder sequenceBuilder = typeBuilder.Sequence(); LoopCardinalityChild = sequenceBuilder .Element <ILoopCardinality>(/*typeof(ILoopCardinality)*/) .Build/*<ILoopCardinality>*/ (); LoopDataInputRefChild = sequenceBuilder .Element <LoopDataInputRef>(/*typeof(LoopDataInputRef)*/) .QNameElementReference <IDataInput>(/*typeof(IDataInput)*/) .Build(); LoopDataOutputRefChild = sequenceBuilder .Element <LoopDataOutputRef>(/*typeof(LoopDataOutputRef)*/) .QNameElementReference <IDataOutput>(/*typeof(IDataOutput)*/) .Build(); OutputDataItemChild = sequenceBuilder .Element <IOutputDataItem>(/*typeof(IOutputDataItem)*/) .Build/*<IOutputDataItem>*/ (); InputDataItemChild = sequenceBuilder .Element <INputDataItem>(/*typeof(INputDataItem)*/) .Build/*<INputDataItem>*/ (); ComplexBehaviorDefinitionCollection = sequenceBuilder .ElementCollection <IComplexBehaviorDefinition>(/*typeof(IComplexBehaviorDefinition)*/) .Build/*<IComplexBehaviorDefinition>*/ (); CompletionConditionChild = sequenceBuilder .Element <ICompletionCondition>(/*typeof(ICompletionCondition)*/) .Build/*<ICompletionCondition>*/ (); 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(); camundaCollection = typeBuilder .StringAttribute(BpmnModelConstants.CamundaAttributeCollection) .Namespace(BpmnModelConstants.CamundaNs) .Build(); camundaElementVariable = typeBuilder .StringAttribute(BpmnModelConstants.CamundaAttributeElementVariable) .Namespace(BpmnModelConstants.CamundaNs) .Build(); typeBuilder.Build(); }