示例#1
0
        protected internal override BaseElement ConvertXMLToElement(XMLStreamReader xtr, BpmnModel model)
        {
            DataStoreReference dataStoreRef = new DataStoreReference();

            BpmnXMLUtil.AddXMLLocation(dataStoreRef, xtr);
            ParseChildElements(XMLElementName, dataStoreRef, model, xtr);
            return(dataStoreRef);
        }
        public override BaseElement Clone()
        {
            DataStoreReference clone = new DataStoreReference
            {
                Values = this
            };

            return(clone);
        }
示例#3
0
        protected internal override void WriteAdditionalChildElements(BaseElement element, BpmnModel model, XMLStreamWriter xtw)
        {
            DataStoreReference dataStoreRef = (DataStoreReference)element;

            if (!string.IsNullOrWhiteSpace(dataStoreRef.DataState))
            {
                xtw.WriteStartElement(BpmnXMLConstants.BPMN_PREFIX, BpmnXMLConstants.ELEMENT_DATA_STATE, BpmnXMLConstants.BPMN2_NAMESPACE);
                xtw.WriteCharacters(dataStoreRef.DataState);
                xtw.WriteEndElement();
            }
        }
示例#4
0
        protected internal override void WriteAdditionalAttributes(BaseElement element, BpmnModel model, XMLStreamWriter xtw)
        {
            DataStoreReference dataStoreRef = (DataStoreReference)element;

            if (!string.IsNullOrWhiteSpace(dataStoreRef.DataStoreRef))
            {
                xtw.WriteAttribute(BpmnXMLConstants.ATTRIBUTE_DATA_STORE_REF, dataStoreRef.DataStoreRef);
            }

            if (!string.IsNullOrWhiteSpace(dataStoreRef.ItemSubjectRef))
            {
                xtw.WriteAttribute(BpmnXMLConstants.ATTRIBUTE_ITEM_SUBJECT_REF, dataStoreRef.ItemSubjectRef);
            }
        }