/// <summary> /// 对进程对象进行终极清理 /// </summary> public void Dispose() { foreach (var bpmn in this) { if (bpmn is IExtensionSupport ie) { if (ie.ChangeNote != null && !ie.ChangeNote.IsDisposed) { ie.ChangeNote.Dispose(); ie.ChangeNote = null; } } } this.Clear(); // 释放状态通知对象 if (ExecuteNote != null && !ExecuteNote.IsDisposed) { ExecuteNote.Dispose(); ExecuteNote = null; } }