示例#1
0
        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;
            }
        }
示例#2
0
 public virtual void Initialize(BpmnTypes types)
 {
     typeHandler = types.Get(this.TypeName);
 }