Managing Master Data with webMethods OneData : Administering webMethods OneData : Asynchronous Messaging : Purging and Restoring Nodes in Network-Recursive Objects
Purging and Restoring Nodes in Network-Recursive Objects
To restore or purge the root nodes (nodes without any parent) in a network recursive object, all child nodes have to be restored or purged first. This is a two step process with child nodes in one XML and only root nodes in next XML.
To purge or restore nodes in network recursive objects
1. Purge or restore child nodes, using the following code sample as an example.
<distribution>
<header>
 <onedata_version>8.2.1.0</onedata_version>
  <repository>DEV2</repository>
  <client_id>1</client_id>
  <project_id>1</project_id>
  <objectid>12345</objectid>
  <alternatekey> EMPLOYEE_SR = FNM</alternatekey>
  <decode>true</decode>
  <processingmode>delete</processingmode>
  <dateformat>YYYY-MM-DD</dateformat>
</header>
<data>
  <NR_EMPLOYEE>
   <datarow>
    <EMPNAME>John Doe</EMPNAME>
   </datarow>
   </NR_EMPLOYEE>
</data>
</distribution>
2. Purge or restore the root nodes using the following code sample as an example.
<?xml version="1.0"?>
<distribution>
<header>
  <onedata_version>8.2.1.0</onedata_version>  
  <repository>DEV2</repository>
  <client_id>1</client_id>
  <project_id>1</project_id>
  <objectid>12345</objectid>  
  <alternatekey> EMPLOYEE_SR = FNM</alternatekey> 
  <decode>true</decode>
  <processingmode>delete</processingmode>  
  <dateformat>YYYY-MM-DD</dateformat>
</header>
<data>
  <NR_EMPLOYEE> 
   <datarow>
    <EMPNAME>Manager</EMPNAME>
   </datarow>
  </NR_EMPLOYEE>
</data>
</distribution>
Copyright © 2011-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback