Example of a complete CDD file
- Last Updated: March 3, 2025
- 1 minute read
- Corticon
- Documentation
The first Decision Service in this CDD shows all options and the second accepts all defaults.
<cdd soap_server_binding_url="http://localhost:8850/axis/services/Corticon">
<decisionservice>
<name>AllocateTrade</name>
<path>../AllocateTrade.eds</path>
<options>
<option name="PROPERTY_AUTO_RELOAD"
value="true" />
<option name="PROPERTY_MAX_POOL_SIZE"
value="1" />
<option name="PROPERTY_MESSAGE_STRUCTURE_TYPE"
value="HIER" />
<option name="PROPERTY_DATABASE_ACCESS_MODE"
value="R" />
<option name="PROPERTY_DATABASE_ACCESS_RETURN_ENTITIES_MODE"
value="ALL" />
<option name="PROPERTY_DATASOURCE_CONFIG_FILE_PATH"
value="../datasource.xml" />
<option name="PROPERTY_DATABASE_ACCESS_CACHING_ENABLED"
value="true" />
<option name="PROPERTY_EXECUTION_RESTRICT_RULEMESSAGES_INFO"
value="true" />
<option name="PROPERTY_EXECUTION_RESTRICT_RULEMESSAGES_WARNING"
value="true" />
<option name="PROPERTY_EXECUTION_RESTRICT_RULEMESSAGES_VIOLATION"
value="true" />
<option name="PROPERTY_EXECUTION_RESTRICT
_RESPONSE_TO_RULEMESSAGES_ONLY"
value="true" />
</options>
</decisionservice>
<decisionservice>
<name>Candidates</name>
<path>../Candidates.eds</path>
<options/>
</decisionservice>
</cdd>
In the Deployment Descriptor file shown above, note the following:
- There are two
<decisionservice>sections. - The first
<decisionservice>specifies that it uses EDC database access by choosing the valueR, the Read-Only setting, and the database related entities returned option, the option to enable database caching, and the location of the Database Access Properties file that defines the database connection.
Important: If you are using the bundled Apache Tomcat to
test and deploy your Decision Service, copy the Deployment Descriptor file to the
Corticon Server installation's [CORTICON_WORK_DIR]\cdd directory. When Corticon Server starts, it reads all .cdd files in that default location.
Updating and extending older CDD files
If you have CDD files that list deployment of ERF files, those ERF files must be compiled into EDS files prior to deployment. You can generate EDS files with Corticon Studio, Corticon command line utilities, or Corticon ant macros.