DCO APIs
The DCO APIs include properties and methods that you can use to modify the runtime batch hierarchy, which is also known as the runtime DCO. For example, when your business requirements change, you can use these APIs to add or remove documents and pages, or change the names or values of object types.
When you create a runtime DCO object (m_oDCO in this example), a corresponding DCOSetup object is created automatically. The DCOSetup object is a child of the DCO object.
TDCOLib.IDCO m_oDCO = new TDCOLib.DCOClass();
//Creating a runtime DCO object

Because the DCOSetup object is empty, you need to populate the DCOSetup object from the Setup DCO file of the application.
m_oDCO.ReadSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");
//Reading a Setup DCO file

As workflow tasks process scanned pages, Datacap creates a hierarchy of child objects beneath the runtime DCO object. Each child object in the runtime batch hierarchy corresponds to an object in the Setup DCO:

You use the DCO API properties to change the names of object types, and you can use methods to add or remove child objects.