Configure parameters and write business rules in the Decision Service editor.
<xsd:complexType mixed="true" name="senderDetail">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="purchaseorderID" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
The following extract from the
input message shows text that is mixed with a string element name and
an integer element purchaseorderID:<senderDetail><name>ADAMS</name>this is the customer name<purchaseorderID>2345678</purchaseorderID>this is the purchase order ID</senderDetail>
A
rule is matched in the message flow, which changes the purchase order
ID if the name matches certain criteria. However, the two text strings
are concatenated:<senderDetail><name>ADAMS</name><purchaseorderID>2345678</purchaseorderID>this is the customer name this is the purchase order ID</senderDetail>
To
maintain the text location with mixed content, send in the simple
types of the individual fields that you want to action in the rule,
instead of sending in the complex type of mixed content. Therefore,
in this example, send in name and purchaseOrderID as
the two parameters to the rule For more information, see the information
about complex types in When you create a decision service in the IBM Integration Toolkit, it contains a list of the schema parameters that you selected with the wizard. You can configure those parameters, provide natural language aliases for them, and use the content assist tool to write business rules. In the Decision Service editor, use the Rule sequence tab to add rules and specify the order in which they are run. Use the Parameters tab to add, edit, and delete parameters. Use the Additional Info tab to specify the version of the decision service and to provide a description.
If your decision service is created from a rule application archive that was imported from IBM Operational Decision Manager, you cannot add, edit, or delete parameters. Nor can you see or edit the rules that are contained in the rule set. When you open an imported decision service in the Decision Service editor, you see only the Parameters and Additional Info tabs, and you cannot edit the information that is on these tabs.
The following steps describe how to configure parameters and write rules in a decision service that was created in the IBM Integration Toolkit.
To use the business rules in your decision service to process a message, create a message flow by following the instructions in Processing messages with a decision service.