Corticon Studio can produce your preferred type of service contract for the project's Vocabulary or a Ruleflow that uses the Vocabulary. The output files are generated to the Studio's [WORK_DIR]\Reports directory.

When you produce WSDL using this option, the WSDL is not included in the Decision Service package unless you set properties as described in the following note. The WSDL and report that you produce can be passed to system integrators as descriptive notes about the Decision Service.

Note: The default process of Decision Service compilation does not include WSDL and its report in the EDS file. The selections in the Studio export Service contracts and reports that can be passed to system integrators as a .wsdl or .xsd text and a report .html file. If you want WSDL or reports in the Decision Service package, add the following lines to the brms.properties file where Corticon will do the compilation:
com.corticon.server.compile.add.wsdl=true
com.corticon.server.compile.add.report=true.

Generating Vocabulary level service contracts

You can produce Vocabulary level service contracts as WSDL or XSD.

Vocabulary-level WSDL

Select the Vocabulary you want. Open it in the editor. Choose the menu command Vocabulary > Export WSDL.

Its dialog box opens:

The Messaging style must be selected for the Finish button to be enabled. In the dropdown menu, choose Flat or Hier, as shown:

You can change the To directory to a preferred location. Click Finish. The report is generated and saved as VocabularyName.wsdl in the To Directory location.

Vocabulary-level XSD

Select the Vocabulary you want. Open it in the editor. Choose the menu command Vocabulary > Export XSD.

Its dialog box opens:

In the Messaging style dropdown menu, choose Flat or HierClick Finish. The report is generated and saved as VocabularyName.xsd in the To Directory location.

Generating Decision Service level service contracts

You can produce Decision Service level service contracts as WSDL or XSD.

Decision-service-level WSDL

Select the Ruleflow you want. Open in the editor. Choose the menu command Ruleflow > Export WSDL.

This dialog box opens:

Click Finish. The report is generated and saved as RuleflowName_0.wsdl in the To Directory location.

Decision-service-level XSD

With the Ruleflow you want open in its editor, choose the menu command Ruleflow > Export XSD.


Its dialog box opens:

Click Finish. The report is generated and saved as RuleflowName_0.xsd in the To Directory location.

Decision-service-level Service Contract CSV and Excel

Open the Ruleflow you want in its editor, and then choose the menu command Service Contract.



Its dialog box opens:


Click Finish. Two reports are generated and saved: RuleflowName_ServiceContract.csv and RuleflowName_ServiceContract.xml in the Output Folder location. These files provide the basis for defining a JSON/REST service contract. See Generic service contract