示例#1
0
 public override void doMerge()
 {
     foreach (KeyValuePair <string, List <Rules> > dictionaryObject in m_dictionaryObject)
     {
         ManageXMLWorkflowMerge m_merge = ManageXMLWorkflowMerge.getInstance();
         Workflow m_mergeObject         = m_merge.getInstanceObject(dictionaryObject.Key);
         m_mergeObject.Rules = dictionaryObject.Value;
     }
 }
示例#2
0
        private void merge(string pathSource, string pathDir, List <IMetadata> MetaDatas)
        {
            ConsoleHelper.WriteDoneLine(">> Merging Metadata...");
            foreach (IMetadata m_Metadata in MetaDatas)
            {
                m_Metadata.doMerge();
            }

            ManageXMLCustomObjectMerge mergeobject = ManageXMLCustomObjectMerge.getInstance();

            mergeobject.defaultParameters(pathSource);
            mergeobject.writeAllInstances(pathDir);

            ManageXMLWorkflowMerge mergeworkflow = ManageXMLWorkflowMerge.getInstance();

            mergeworkflow.defaultParameters(pathSource);
            mergeworkflow.writeAllInstances(pathDir);
        }