public override BaseElement Clone() { IOParameter clone = new IOParameter { Values = this }; return(clone); }
public override void ParseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) { string source = xtr.GetAttributeValue(BpmnXMLConstants.ATTRIBUTE_IOPARAMETER_SOURCE); string sourceExpression = xtr.GetAttributeValue(BpmnXMLConstants.ATTRIBUTE_IOPARAMETER_SOURCE_EXPRESSION); string target = xtr.GetAttributeValue(BpmnXMLConstants.ATTRIBUTE_IOPARAMETER_TARGET); if ((!string.IsNullOrWhiteSpace(source) || !string.IsNullOrWhiteSpace(sourceExpression)) && !string.IsNullOrWhiteSpace(target)) { IOParameter parameter = new IOParameter(); if (!string.IsNullOrWhiteSpace(sourceExpression)) { parameter.SourceExpression = sourceExpression; } else { parameter.Source = source; } parameter.Target = target; ((CallActivity)parentElement).OutParameters.Add(parameter); } }