cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
57
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 23-02-2005 03:37:04 PM
I am writing an application that asks the user for their birthdate and tries to identify if they are over 18. In the call flow, I have a date control and a decision control(I believe this to be the right control for the job).

The date control recgonizes the date but I keep getting errors at the decision control. I have tried multiple configurations for the control and I receive different errors each time. The configurations are as follows:

Configuration 1:
I have two exit states Over_18 and Under_18.
I set it to use XML and put the following into the XML editor.
[code:1:885039c79f]
<knowledge_base>
<rule name="Decision_01">
<exit_state name="Under_18">
<number operator="greater">
<data>
<element name="Date_01" value="value" />
</data>
<constant_string value="19880222"/>
</number>
</exit_state>
<exit_state name="Over_18">
<number operator="less_equal">
<data>
<element name="Date_01" value="value" />
</data>
<constant_string value="19880222"/>
</number>
</exit_state>
</rule>
</knowledge_base>
[/code:1:885039c79f]

When the application is run, I get the following error:
[code:1:885039c79f]
192.168.2.146.1109110899062.11.test2,02/22/2005 17&#58;21&#58;56, SERVER ERROR&#58; The conditions of the caller did not trigger any rules. Please check your configuration.
[/code:1:885039c79f]

Configuration 2:
I have two exit states Over_18 and Under_18.
I set the decision control to use URI and set the path to http://192.168.2.146/test.xml. Note that I have no problems requesting the file through a web browser.

It does not seem to matter what I put in the XML file. I always get the following error:
[code:1:885039c79f]
192.168.2.146.1109111215531.12.test2,02/22/2005 17&#58;27&#58;13, SERVER ERROR&#58; An element encountered an exception of type com.audium.server.AudiumException with the message&#58; An error occurred while trying to connect to http&#58;//192.168.2.146/test.xml to obtain the dynamic decision configuration for decision 'Decision_01'.
[/code:1:885039c79f]

Am I using the wrong element(s) to accomplish taking a different path if they are under_18?
Please help, my evaluation of this product expires on the 28th.

Subject: RE: Problems making decisions!
Replied by: Michael Bochynski on 23-02-2005 11:24:27 PM
Hi Lowell,

Your first configuration is the correct one. However, small modifications to your XML code are required. I have described them below.

In the second configuration, when you define URI, the XML expected for the URI is different that the XML used in rules. The error message might also mean that your URI does not produce valid XML for a decision element. For more details about using URI as a source in a Decision element, please refer to Quick Reference Guides, Audium 3 XML API documentation. While the document refers to Audium 3, older version, the information about XML API applies to Audium Studio/Call Services release.

In your XML decision, you have one error â¿¿ the [b:82bdc96caf]<element>[/b:82bdc96caf] tag should have [i:82bdc96caf]variable=â¿¿valueâ¿¿[/i:82bdc96caf] pair, not [i:82bdc96caf]value=â¿¿valueâ¿¿[/i:82bdc96caf]. Moreover using [i:82bdc96caf]constant_string[/i:82bdc96caf] in number comparison will throw a warning. I would suggest using [i:82bdc96caf]constant_number[/i:82bdc96caf] instead.

You might also want to use [i:82bdc96caf]default_exit_state[/i:82bdc96caf] property for [b:82bdc96caf]<rule>[/b:82bdc96caf] tag. It would allow you to define only one exit state, and the default exits state would be used when the conditions defined in the first state are not met.

The proper XML Rule should look like :

[code:1:82bdc96caf]
<knowledge_base>
<rule name="Decision_01" default_exist_state=â¿¿Under_18â¿¿>
<exit_state name="Over_18">
<number operator="greater">
<data>
<element name="Date_01" variable="value" />
</data>
<constant_number value="19880222"/>
</number>
</exit_state>
</rule>
</knowledge_base>
[/code:1:82bdc96caf]

For further details about XML Rules please refer to Quick Reference Guide, Audium Decisions Reference, available at:

http://www.audiumcentral.com/supportcenter/viewtopic.php?t=228

User Guide documentation also provides sample decisions and specification for XML Rules. The User Guide documentation is available at:

http://www.audiumcentral.com/supportcenter/viewtopic.php?t=1108

Note that the GUI-based Rules editor should be added in a future release, making creation of XML decisions simpler and less error-prone.

Please also contact your Audium Sales Representative about your evaluation expiration.

Hope it helps,
Michael
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links