Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2089


Ignore:
Timestamp:
06/24/09 17:29:45 (15 years ago)
Author:
gkronber
Message:

Fixed serialization (JobId attribute) of hive engine jobs. #545 (Engine which can be executed in the Hive)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/Job.cs

    r1815 r2089  
    103103    public override System.Xml.XmlNode GetXmlNode(string name, System.Xml.XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
    104104      XmlNode node = base.GetXmlNode(name, document, persistedObjects);
     105      XmlAttribute idAttr = document.CreateAttribute("JobId");
     106      idAttr.Value = XmlConvert.ToString(JobId);
     107      node.Attributes.Append(idAttr);
    105108      node.AppendChild(PersistenceManager.Persist("Engine", Engine, document, persistedObjects));
    106109      return node;
     
    108111    public override void Populate(System.Xml.XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {
    109112      base.Populate(node, restoredObjects);
     113      JobId = XmlConvert.ToInt64(node.Attributes["JobId"].Value);
    110114      DeregisterEvents();
    111115      engine = (SequentialEngine.SequentialEngine)PersistenceManager.Restore(node.SelectSingleNode("Engine"), restoredObjects);
Note: See TracChangeset for help on using the changeset viewer.