origam.com

Wait task in workflow has wrong namespace

When Wait task is added to a workflow, the save fails, because it has a wrong namespace wt, duplicate to the workflow task and it rewrites the original ones.

Error
The namespace declaration attribute has an incorrect 'namespaceURI': 'http://www.w3.org/2000/xmlns/'.
========================================
The namespace declaration attribute has an incorrect 'namespaceURI': 'http://www.w3.org/2000/xmlns/'.
------------------------------------------
========================================
 Stack trace
========================================
   at System.Xml.XmlDocument.AddAttrXmlName(String prefix, String localName, String namespaceURI, IXmlSchemaInfo schemaInfo)
   at System.Xml.XmlDocument.CreateAttribute(String prefix, String localName, String namespaceURI)
   at System.Xml.XmlElement.SetAttribute(String localName, String namespaceURI, String value)
   at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action)
   at Origam.DA.Service.OrigamDocumentSorter.CopyAttributes(XmlNode childNode, XmlElement childCopy)
   at Origam.DA.Service.OrigamDocumentSorter.CopyNodes(XmlNode node, XmlElement targetNode, OrigamXmlDocument newDoc, NameSpaceInfo nameSpaceInfo)
   at Origam.DA.Service.OrigamDocumentSorter.<>c__DisplayClass1_0.<CopyNodes>b__3(XmlNode childNode)
   at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action)
   at Origam.DA.Service.OrigamDocumentSorter.<>c__DisplayClass1_0.<CopyNodes>b__3(XmlNode childNode)
   at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action)
   at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action)
   at Origam.DA.Service.OrigamDocumentSorter.CopyAndSort(OrigamXmlDocument doc)
   at Origam.DA.Service.OrigamFileManager.WriteToDisc(OrigamFile origamFile, OrigamXmlDocument xmlDocument)
   at Origam.DA.Service.OrigamFile.FinalizeSave()
   at Origam.DA.Service.TransactionStore.<ProcessTransactions>b__9_0()
   at Origam.Extensions.ReaderWriterLockSlimExtensions.RunWriter(ReaderWriterLockSlim rwLock, Action action)
   at Origam.DA.Service.Persistor.Persist(IPersistent obj, Boolean checkRules)
   at Origam.DA.Service.FilePersistenceProvider.Persist(IPersistent obj)
   at Origam.DA.ObjectPersistence.AbstractPersistent.Persist()
   at Origam.Schema.AbstractSchemaItem.Persist()
   at Origam.Workbench.Diagram.InternalEditor.AddDependencyTask.TryRun(AbstractSchemaItem persistedItem)
   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
   at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action)
   at Origam.Workbench.Diagram.InternalEditor.WorkFlowDiagramEditor.OnInstancePersisted(Object sender, IPersistent persistedObject)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Origam.DA.ObjectPersistence.AbstractPersistenceProvider.EndTransaction()
   at Origam.Workbench.Editors.AbstractEditor.SaveObject()
   at Origam.Workbench.Editors.AbstractEditor.SaveCommand()
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)