Пример #1
0
        public virtual IElementReferenceBuilder UriElementReference <TTarget>() where TTarget : IModelElementInstance
        {
            ChildElementImpl <TSource> child = (ChildElementImpl <TSource>)Build();
            ElementReferenceBuilderImpl <TTarget, TSource> builder = new UriElementReferenceBuilderImpl <TTarget, TSource>(child);

            SetReferenceBuilder(builder);
            return(builder);
        }
Пример #2
0
        public virtual ElementReferenceBuilder <V, T> uriElementReference <V>(Type referenceTargetType) where V : org.camunda.bpm.model.xml.instance.ModelElementInstance
        {
            referenceTargetType = typeof(V);
            ChildElementImpl <T> child = (ChildElementImpl <T>)build();
            ElementReferenceBuilderImpl <V, T> builder = new UriElementReferenceBuilderImpl <V, T>(childElementType, referenceTargetType, child);

            ReferenceBuilder = builder;
            return(builder);
        }