protected BpmnModel(Definitions definitions, IReadOnlyDictionary <string, FlowElement> flowElements, byte[] modelData) { this.definitions = definitions; this.modelData = modelData; this.processes = definitions.RootElements.OfType <Process>(); this.processById = this.processes.ToDictionary(x => x.Id); this.flowElementById = flowElements; if (definitions.TypeLanguage == "http://www.w3.org/2001/XMLSchema") { this.types = XsdTypes.Instance; } }
public virtual void Initialize(BpmnTypes types) { typeHandler = types.Get(this.TypeName); }