Setting deployment properties in a CDD file through APIs
To deploy a Decision Service using APIs, at a minimum you have to supply a Decision Service Name and a Rule Asset Path. The Properties object can contain additional options related to that Decision Service. Any properties you do not specify will assume default values.
You define the properties to set using the ICcServer API's deployDecisionService(...) method in the form:
The Corticon Server API Javadoc for ICcServer has constants defined for each property. It is a good practice to use those constants instead of literal values, as will be demonstrated.
The following list of properties (all are public static final String) can be set for this method:
// Add Decision Service to ICcServer lICcServer.addDecisionService(lstrDecisionService, lstrEdsFilePath, lpropOptions); }
Compiling a CDD using APIs
The API methods loadFromCdd() and loadFromCddDir() compile one or several Deployment Descriptors. The simplest, loadFromCdd(), requires you to provide the complete path to the specific Deployment Descriptor file you want to load. The other, loadFromCddDir(), requires the path to the directory where Corticon Server will look and load all Deployment Descriptor files it finds there.