1. Technical Field
This invention relates to the field of audio interface development, and more particularly to a method and system for easily transitioning from prototype data to real data from a database.
2. Description of the Related Art
Very often, prototyping of audio interfaces involves presenting fake or dummy information to a user, with no real connection to a database. Later on, when the configuration and connection to a database is established, a programmer can replace the presentation of fake information with real information. Currently, there are no existing tools that make it easy to start with prototype database information and then transfer to real.
Embodiments in accordance with the invention can enable a method and system for enabling the selection of real (database connection) or fake (prototype) code within a graphical interface within an automated code generation mechanism. This flexibility in automatic code generation can provide a faster development cycle and a higher level of abstraction. Developers who do not have a database connection and Java-writing skills can develop and test complete call flows in a local development environment using the prototype code, then pass the call flow on to more skilled developers who can complete the database connection coding and, as database connections are defined, switch the code production from prototype to real.
In a first aspect of the invention, a method of automated code generation can include the steps of selecting among a real code and a prototype code using a graphical interface providing a selected code and developing a call flow using the selected code. The method can further include the step of selecting the prototype code as the selected code when testing the call flow in a local development environment and switching the selected code from the prototype code to the real code to complete a database connection. The method can further include the step of selecting the prototype code to conduct usability evaluations for refining a user interface which can be done without connecting to a database or remote server. When selecting the prototype code as the selected code, a default value or a range of values can be specified. Additionally, the method can include the step of selecting real code by using a database connection code that replaces a prototype assignment of values to variables.
In a second aspect of the invention, a system for automated code generation in a call flow builder can include a display and a processor coupled to the display. The processor can be programmed to select among a real code and a prototype code using a graphical interface to provide a selected code and develop a call flow using the selected code. The processor can be further programmed to select the prototype code as the selected code and testing the call flow in a local development environment and further enable the switching of the selected code from the prototype code to the real code to complete a database connection. The processor can be further programmed to enable the selection of the prototype code to conduct usability evaluations for refining a user interface which can be done without connecting to a database. The processor can be further programmed to enable the specification of a default value or a range of values when the prototype code is the selected code. Additionally, the processor can be programmed to use a database connection code that replaces a prototype assignment of values to variables when the real code is the selected code.
In a third aspect of the invention, a computer program has a plurality of code sections executable by a machine for causing the machine to perform certain steps as described in the method and systems outlined in the first and second aspects above.
There are shown in the drawings embodiments which are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown.
Embodiments in accordance with the invention can enable the selection of real code (database connection) or fake (prototype) code during the code generation step using a graphical interface within an automated code generation mechanism. This flexibility in automatic code generation can provide a faster development cycle and a higher level of abstraction. Developers who do not have database connection and Java-writing skills can develop and test complete call flows in a local development environment using the prototype code, then pass the call flow on to more skilled developers who can complete the database connection coding. As the database connections are defined, such developers can switch the code production from prototype to real. For example, developers whose interest is primarily in a user interface (UI) (e.g., human factors engineers) can conduct usability evaluations to tune the UI without any need to connect to remote servers, and can send the tuned call flow to programmers who can convert the call flow from a prototype to deployable code in a customer's environment. Programmers who do have database connection skills can also quickly create and test the call flow before making a further investment in more advanced programming.
Referring to
As shown in
In bold below, are the sections of this call flow that provide the prototype simulation for a numeric variable for which a range has been defined. Please note that the example below is merely sample code and that other ways to accomplish this function are contemplated within the scope of this invention (for example, in a VoiceXML 2.0 page). The <script> section illustrates the return of a random value with specific minimum and maximum boundaries. The random value is used within the <value> element. Similar code could be used to randomly select one from a set of categorical values for a string variable. Sections of the call flow script follows below:
Note that several ways are contemplated within the scope of this invention to provide a visual method for defining variables and their values to use for prototyping. The examples described above show a simple approach in which the processing block is used to define a single variable. Other UIs can allow the definition of multiple variables and their values. In the simplest version, each variable can be defined with a single default value (produced in VOICEXML® using either <var> or <assign> statements). In a more complex version, users can assign single values or ranges/sets of values, using code similar to the snippet above to randomly select from the range or set.
As an extension to the examples noted above, the UI could also provide a way for more advanced developers to develop a database connection code that can replace the prototype assignment of values to variables. The simplest embodiment can be to provide a blank space for typing the code. A somewhat more advanced method could launch an editor (similar to Eclipse code editors) for the database connection code. Another embodiment can launch a database connection wizard similar to those already present in various Eclipse perspectives.
It should be understood that the present invention can be realized in hardware, software, or a combination of hardware and software. The present invention can also be realized in a centralized fashion in one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system or other apparatus adapted for carrying out the methods described herein is suited. A typical combination of hardware and software can be a general purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein.
The present invention also can be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which when loaded in a computer system is able to carry out these methods. Computer program or application in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; b) reproduction in a different material form.
This invention can be embodied in other forms without departing from the spirit or essential attributes thereof. Accordingly, reference should be made to the following claims, rather than to the foregoing specification, as indicating the scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
6430615 | Hellerstein et al. | Aug 2002 | B1 |
6577981 | Grey et al. | Jun 2003 | B1 |
7047249 | Vincent | May 2006 | B1 |
7065634 | Lewis et al. | Jun 2006 | B2 |
7133874 | Hill et al. | Nov 2006 | B2 |
7197739 | Preston et al. | Mar 2007 | B2 |
7203927 | Al-Azzawe et al. | Apr 2007 | B2 |
7210117 | Kudukoli et al. | Apr 2007 | B2 |
7233886 | Wegerich et al. | Jun 2007 | B2 |
7278130 | Iborra et al. | Oct 2007 | B2 |
7389492 | Chupa et al. | Jun 2008 | B2 |
20020133320 | Wegerich et al. | Sep 2002 | A1 |
20040001092 | Rothwein et al. | Jan 2004 | A1 |
20040031017 | Vaidyanathan et al. | Feb 2004 | A1 |
20040216044 | Martin et al. | Oct 2004 | A1 |
20040221238 | Cifra et al. | Nov 2004 | A1 |
20040230600 | Devore et al. | Nov 2004 | A1 |
20050028133 | Ananth et al. | Feb 2005 | A1 |
20050125399 | Ireland et al. | Jun 2005 | A1 |
20050160395 | Hughes | Jul 2005 | A1 |
20060253789 | Cobb et al. | Nov 2006 | A1 |
Number | Date | Country |
---|---|---|
2002022360 | Mar 2002 | KR |
WO 0005643 | Feb 2000 | WO |
Number | Date | Country | |
---|---|---|---|
20050235255 A1 | Oct 2005 | US |