In the figures which illustrate exemplary embodiments:
An outgoing message may be generated, at a mobile communication device, based on a portion of a received application definition document, which indicates a lifespan for the message. In conjunction with generating a message in accordance with a format provided in the application definition document, a message expiry time may be generated. The message may be stored in a queue for transmission. Additionally, an indication of the expiry time may stored in the queue in association with the message. The expiry time of the message may be periodically compared to the current time to determine whether the message has expired. At the point at which the message is determined to have expired, a user of the mobile communication device may be presented with the option to cancel transmission of the message or re-attempt transmission.
In accordance with an aspect of the present disclosure there is provided a method of handling outgoing messages. The method includes receiving defining a format for messages, generating, according to the format, a message to be transmitted, generating an indication of an expiry time for the message based on information provided in the document, storing the message in a queue, storing the indication of the expiry time in the queue in association with the message, determining that the message remains in the queue after the expiry time and further processing the message. In other aspects of the application, a mobile communication apparatus is provided to carry out the method and a computer readable medium is provided to allow a processor in a mobile communication device to carry out the method.
Other aspects and features of the present disclosure will become apparent to those of ordinary skill in the art upon review of the following description of specific embodiments of the application in conjunction with the accompanying figures.
The base station subsystem 104 communicates with the wireless core network subsystem 106. In an exemplary Global System for Mobile communications (GSM) implementation, the wireless core network subsystem 106 includes, among other components, a mobile services switching center, a home location register, a visitor location register and a Short Messaging Service Center. As illustrated in
The mobile device 101 may be associated with an enterprise 110 that is in communication with the data communication network 108. The enterprise 110 may, for instance, include a firewall or proxy server 112 connecting to the data communication network 108 and to a local area network (LAN) 114. The LAN 114 may allow communication between a mobile device server 116, an enterprise server 118 and a transaction server 120 within the enterprise.
Also connected to the data communication network 108 may be a relay 130 and a backend application server 132.
The housing may be elongated vertically, or may take on other sizes and shapes (including clamshell housing structures). The keyboard 210 may include a mode selection key, or other hardware or software, for switching between text entry and telephony entry.
In addition to the microprocessor 228, other parts of the mobile device 101 are shown schematically in
Operating system software executed by the microprocessor 228 is preferably stored in a computer readable medium, such as the flash memory 216, but may be stored in other types of memory devices, such as a read only memory (ROM) or similar storage element. In addition, system software, specific device applications, or parts thereof, may be temporarily loaded into a volatile store, such as the RAM 218. Communication signals received by the mobile device 101 may also be stored to the RAM 218.
The microprocessor 228, in addition to its operating system functions, enables execution of software applications on the mobile device 101. A predetermined set of software applications that control basic device operations, such as a voice communications module 230A and a data communications module 230B, may be installed on the mobile device 101 during manufacture. An application client subsystem module 230C may also be installed on the mobile device 101 during manufacture, to implement aspects of the application. In particular, the application client subsystem module 230C may include virtual machine software.
Additional software modules, illustrated as an other software module 230N, which may be, for instance, a personal information manager (PIM) application, may be installed during manufacture. The PIM application is preferably capable of organizing and managing data items, such as e-mail messages, calendar events, voice mail messages, appointments, and task items. The PIM application is also preferably capable of sending and receiving data items via a wireless carrier network represented in
Communication functions, including data and voice communications, may be performed through the communication subsystem 240 and, possibly, through the short-range communications subsystem 202. The communication subsystem 240 includes a receiver 250, a transmitter 252 and one or more antennas, illustrated as a receive antenna 254 and a transmit antenna 256. In addition, the communication subsystem 240 also includes a processing module, such as a digital signal processor (DSP) 258, and local oscillators (LOs) 260. The specific design and implementation of the communication subsystem 240 is dependent upon the communication network in which the mobile device 101 is intended to operate. For example, the communication subsystem 240 of the mobile device 101 may be designed to operate with the Mobitex™, DataTAC™ or General Packet Radio Service (GPRS) mobile data communication networks and may also be designed to operate with any of a variety of voice communication networks, such as Advanced Mobile Phone Service (AMPS), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), Personal Communications Service (PCS), GSM, etc. Other types of data and voice networks, both separate and integrated, may also be utilized with the mobile device 101.
When the required network registration or activation procedures have been completed, the mobile device 101 may send and receive communication signals over the wireless carrier network. Signals received from the base station antenna 102 by the receive antenna 254 are routed to the receiver 250, which provides for signal amplification, frequency down conversion, filtering, channel selection, etc., and may also provide analog to digital conversion. Analog-to-digital conversion of the received signal allows the DSP 258 to perform more complex communication functions, such as demodulation and decoding. In a similar manner, signals to be transmitted to the base station antenna 102 are processed (e.g., modulated and encoded) by the DSP 258 and are then provided to the transmitter 252 for digital to analog conversion, frequency up conversion, filtering, amplification and transmission to the base station antenna 102 via the transmit antenna 256.
In addition to processing communication signals, the DSP 258 provides for control of the receiver 250 and the transmitter 252. For example, gains applied to communication signals in the receiver 250 and the transmitter 252 may be adaptively controlled through automatic gain control algorithms implemented in the DSP 258.
In a data communication mode, a received signal, such as an SMS message or web page download, is processed by the communication subsystem 240 and is input to the microprocessor 228. The received signal is then further processed by the microprocessor 228 in preparation for output to the display 226 or, alternatively, to some of the auxiliary I/O devices 206. A device user may also compose data items, such as e-mail messages or SMS messages, using the keyboard 210 and/or some other auxiliary I/O device 206, such as a touchpad, a rocker switch, a thumb-wheel, or some other type of input device. The composed data items may then be transmitted to the base station antenna 102 via the communication subsystem 240.
In a voice communication mode, overall operation of the mobile device 101 is substantially similar to the data communication mode, except that received signals may be output to the speaker 211, and signals for transmission may be generated by the microphone 212. Alternative voice or audio I/O subsystems, such as a voice message recording subsystem, may also be implemented on the mobile device 101. In addition, the display 226 may also be utilized in voice communication mode, for example, to display the identity of a calling party, the duration of a voice call, or other voice call related information.
The short-range communications subsystem 202 enables communication between the mobile device 101 and other proximate systems or devices, which need not necessarily be similar devices. For example, the short-range communications subsystem 202 may include an infrared device and associated circuits and components, or a Bluetooth™ communication module, to provide for communication with similarly enabled systems and devices.
The virtual machine software of the application client subsystem module 230C may include: conventional Extensible Markup Language (XML) parser software; event handler software; screen generation engine software; and object classes. The software, when executed, leads to a virtual machine 300, which, as illustrated in
From the perspective of the mobile device 101, the transaction server 120 is positioned behind the firewall 112. In operation, the transaction server 120 may exchange data traffic with the enterprise server 118. Additionally, the transaction server 120 may exchange data traffic with the backend application server 132. In an exemplary case, the virtual machine 300, executing on the microprocessor 228 of the mobile device 101, generates a request message and stores the request message in a queue of outbound messages. A message transmission object then transmits the request message to the transaction server 120, via the base station subsystem 104, the wireless network subsystem 106, the data communication network 108, the firewall 112 and the local area network 114. Responsive to receiving the request message, the transaction server 120 may execute a database query on a database. The response to the database query may, for instance, be an indication of server-side applications that are available to the mobile device 101. Data representative of the indication may then be transmitted, by the transaction server 120 in a response message, to the mobile device 101.
Upon receipt of the response message at the mobile device 101, the screen generation engine 306 of the virtual machine 300 may present a list of available server-side applications in a user interface on the display 226 of the mobile device 101. In response to being presented with the list of available server-side applications, a user at the mobile device 101 may select a given server-side application for which to register. Responsive to the user selecting the given server-side application, the virtual machine 300 generates a registration request message containing a registration request for the given server-side application and stores the registration request message in the outbound message queue. The message transmission object then transmits the registration request message to the transaction server 120. The transaction server 120, in response to receiving the registration request message, queries the server database for a user interface definition associated with the given server-side application and the mobile device 101. Thereafter, the transaction server 120 creates an application definition document, which includes the user interface definition, and transmits a message that includes the application definition document to the mobile device 101.
At the mobile device 101, the application definition document carrying message is received (step 402,
As may be understood from the preceding, the transaction server 120 may be considered to manage the flow of data between an application executed at a server and an interface to that application presented at the mobile device 101. Among other operating systems, the transaction server 120 may be implemented on Microsoft™ Windows 2000 or Windows 2003 server. The collection of functions executed at the transaction server 120 may be considered to include application management, access control, event monitoring, session control, transaction queuing, data routing, user management and network connectivity monitoring.
In overview, the application client subsystem module 230C may provide instructions to allow the microprocessor 228 to generate a message for transmission to the transaction server 120 (
As is known in the art, the outbound message queue may be implemented as a “queue table” in a relational database, say, in the persistent flash memory 216. Relational databases may be structured to include tables, which contain records. As such, an outbound message may be stored in a Message field of a message record in the queue table. Advantageously, a new field, a “Message Expiry Time Stamp” field, may be defined for the message record, where the Message Expiry Time Stamp field is arranged for storage of a time stamp to be associated with the message stored in the Message field of the message record.
Advantageously, due to the persistence of the flash memory 216 in which the queue table is stored, the mobile device 101 may be powered off and yet maintain the messages in the outbound queue for transmission when the device is powered on. Persistent memory is a common feature of mobile communication devices. For example, PocketPC devices provide persistent memory, control of which is provided through a Microsoft™ application called “Pocket Access”. Palm™ devices have persistent memory in the form of a built-in data store.
Message expiry is generally known in other message-handling protocols to occur at a location away from the source of the message. For instance, it is known to insert a Time-To-Live (TTL) value in an Internet Protocol (IP) packet to indicate to a IP network router whether a given IP packet has been handled by a predetermined number of IP routers. If the predetermined number is exceeded, the given IP packet may be discarded and a message may be sent to the source of the given IP packet. The TTL is not, in fact, a time. Instead, the TTL is a count. The count is initialized to the predetermined number of IP routers by the source of the given IP packet. Each router that receives the given IP packet and transmits the given IP packet also decrements the count by one. When the count reaches zero, the predetermined number is considered to have been exceeded.
Message expiry is also known in the Push Access Protocol (PAP) for the Wireless Application Protocol (WAP), as described in “Push Access Protocol”, version 29-Apr.-2001, Wireless Application Protocol, WAP-247-PAP-20010429-a, available from www.wapforum.org. A push initiator may generate a message for a mobile client. The push initiator may include a field in the message that specifies a precise date and time at which the message should be considered to have expired. A push proxy gateway that receives the message for transmission to the mobile client may successfully transmit the message to the mobile client, may receive a confirmation from the mobile client and, responsive to receiving the confirmation, transmit a delivery confirmation to the push initiator. Where the precise date and time specified in the message passes without the message having been transmitted to the mobile client, the push proxy gateway may transmit an expiry notification to the push initiator.
In contrast to the above-mentioned protocols, which may be seen to implement message expiry rules in a location remote from the source of the message, it is proposed herein to implement message expiry rules directly at the source of the message. Advantageously, it is the source of the message that can best determine a time period such that the relevance of the message, after the expiry of the time period, has been reduced to the point that the message is preferably not sent.
As discussed above, an application definition document provides a user interface definition. Overall, the application definition document may define for a particular server-side application: a user interface for controlling application functionality and display format (including display flow); the format of data to be exchanged over the data communications network 108; and the format of data to be stored locally at the mobile device 101. The virtual machine may use the operating system software, also executed by the microprocessor 228, and associated application programming interfaces (APIs) to interact with elements of the mobile device 101 in accordance with the received application definition document. In this way, the mobile device 101 may present interfaces for a variety of applications executed at a variety of remote application servers.
While creating an application definition document, a developer may have an opportunity to define a number of types of messages to be sent by the mobile device 101 to the transaction server 120 (some of which may be destined for the backend application server 132 or the enterprise server 118). To implement aspects of the present disclosure at design time, a developer may specify, for a specific type of message, a lifespan.
As presented in the previously cited US Patent Application Publication 2003/0060896, an exemplary application definition document may be formed using a markup language, such as the known XML or a variant thereof. In accordance with an embodiment of the present disclosure, defined XML elements are interpreted by the virtual machine 300 and may be used as building blocks to present, at the mobile device 101, an interface to server-side applications.
Instances 308 of object classes allow the mobile device 101 to process each XML element of a set of supported XML elements. Each of the object classes may be defined to include, for each supported XML element: attributes, which may be used to store parameters defined by the application definition document; and functions, which allow the XML element to be processed at the mobile device 101. As such, the developer may specify a lifespan as an attribute of a XML element in an application definition document.
Appendix B provides an exemplary application definition document whose format should be familiar to those skilled in the art of developing markup language documents. At line 39, a definition of a screen named “GETQUOTE” begins. As part of the screen definition and, further, as part of a definition of a MENU element beginning at line 44 for a menu with a NAME attribute of “mnuMainMenu”, a MENUITEM element with NAME attribute “GetQuote” is defined beginning at line 45. The MENUITEM element with NAME attribute “GetQuote” includes an EVENT element with a TYPE attribute “MENUITEMSELECTED”. The EVENT element with a TYPE attribute “MENUITEMSELECTED” is associated with three ACTION elements, having TYPE attributes of: “OPEN”; “SAVE”; and “ARML”. The ACTION element of the type “ARML” (see line 52) includes an attribute “TTL” whose value is provided as “5”.
The TTL attribute may be considered a lifespan attribute. The value given to the TTL attribute may be considered to be representative of a number of “Ticks.” For a given virtual machine, a tick may be defined as representative of, for example, a millisecond, a second or a minute.
The format provided by the exemplary application definition document of Appendix B also includes some variable fields that are to be filled dynamically based on placeholders in the variable fields. Such dynamic filling may, for instance, be based upon data provided by the user in response to a screen presented on the display of the mobile device 101. The variable fields are delimited by square brackets, i.e., “[” and “]”. These placeholders reference a data source from which data for filling the variable field should be obtained. A suitable data source might be a user interface field on a current screen, a user interface field on a previous screen or a table in a device-based logical database. The virtual machine 300, after reading the data source name, searches for the field corresponding to the referenced data source and replaces the placeholder with data contained within the named field.
In operation, the virtual machine executed on the microprocessor 228 may control the presentation, on the display 226 of the mobile device 101, of a screen named “GETQUOTE” according to the exemplary application definition document of Appendix B. The user of the mobile device 101 may select the GetQuote menu item such that an event of the type “MENUITEMSELECTED” is detected by the operating system of the mobile device 101. The operating system may indicate the detected event to the event handler 304 of the virtual machine 300. The event handler 304 may, based on the definition of the MENUITEM element in the application definition document, arrange for the performance of three actions, each of the three actions defined by a distinct ACTION element, by the virtual machine 300.
According to the ACTION element of type ARML, the event handler 304 instantiates an object from an object class of the virtual machine software, where the object class corresponds to the ACTION element of type ARML. The instantiated object then calls a message generation method to generate a message (step 404,
The exemplary application definition document of Appendix B includes a format at lines 54-56, according to which format the message generation method may generate the message. The message format provided by the exemplary application definition document of Appendix B is delimited by <PKG></PKG> tags. The <PKG> tag has an attribute named “TYPE”. Wrapped by the <PKG></PKG> tags, the message payload is a <SYMBOL></SYMBOL> tag pair. The SYMBOL element defined by the tag pair has an attribute named “E”. The attribute E of the SYMBOL element references a placeholder, as does the content of the SYMBOL element itself.
The message generation method may, based on the provided format, add text to a string variable. As mentioned above, elements of the application definition document, including elements of the action, have been parsed by the XML parser 302. The message generation method adds successive portions of the message to the string variable, such as “<PKG TYPE=“QR”>”, then “<SYMBOL”, then E=“ ”. Before adding the next portion, the message generation method resolves the placeholder “[GETQUOTE.chExch]” and adds the text to which the placeholder resolves to the string variable. The message generation method then adds more portions of the message to the string variable, such as “>”.Before adding the next portion, the message generation method resolves the placeholder “[GETQUOTE.edtSymbol]” and adds the text to which the placeholder resolves to the string variable. The message generation method may finish the message by adding “</SYMBOL></PKG>” to the string variable.
The GETQUOTE screen includes an edit box (EB) element with a NAME attribute “edtSymbol” and further attributes including SAVE=“YES” and SAVENAME=“edtSymbol”. The GETQUOTE screen also includes a CHOICE element with a NAME attribute “chExchange” and further attributes including SAVE=“YES” and SAVENAME=“chExch”.
Above the ACTION element of TYPE “ARML” there is an ACTION element of TYPE “SAVE”. When the virtual machine 300 executes the ACTION element of TYPE “SAVE”, the virtual machine 300 saves the contents of the edtSymbol EB element and the chExchange CHOICE element into the variables defined in the SAVENAME attributes of the edtSymbol EB element and the chExchange CHOICE element, respectively, because the SAVE attributes of the edtSymbol EB element and the chExchange CHOICE element are set to TRUE. The virtual machine 300 stores the variables locally in association with the screen GetQuote so that the variables may be accessed by using [GETQUOTE.edtSymbol] and [GETQUOTE.chExch] as the syntax to retrieve these values.
In an exemplary resolution of a placeholder, the message generation method, after reading the data source name, searches for the variable and replaces the placeholder with value of the variable. For example, the user may have selected the choice “TSE” on the GETQUOTE screen. Similarly, the user may have inserted the text “RIMM” in the edtSymbol edit box on the GETQUOTE screen. Upon executing the ACTION element of TYPE “SAVE”, virtual machine 300 assigns the value TSE to the variable chExch, assigns the value RIMM to the variable edtSymbol and stores the variables. Upon executing the ACTION element of TYPE “ARML”, the message generation method may, while generating a message according to the provided message format, determine the value of the variable chExch and insert the text TSE in place of the [GETQUOTE.chExch] placeholder and determine the value of the variable edtSymbol and insert the text RIMM in place of the [GETQUOTE.edtSymbol] placeholder.
An exemplary message generated according to message format provided in the exemplary application definition document of Appendix B may appear as follows:
When the string variable contains the entire message, that is, the message generation method has added the text “</PKG>” to the string variable, the virtual machine 300 may then call a message expiry time stamp generation method to generate (step 406,
The virtual machine 300 may then call a message record creation method to create (step 408) a message record. The message record may include the generated message and the message expiry time stamp, among other data. The other data may, for instance, include an time stamp representative of the time of creation of the message record and an indication of the value of the TTL attribute. The virtual machine 300 may then call a message record storage method to store (step 410) the message record in the queue table.
Concurrently, a message transmission object may be arranging the transmission of the message portion of the oldest message record in the queue table to the transaction server 120. The message transmission object may, for instance, determine which message record is the oldest in the queue table by considering a “time added” time stamp stored in each message record in the queue table. As such, the queue table may be considered to act as a First-In-First-Out (FIFO) queue in that the message transmission object attempts to transmit the message at the top of the queue, i.e., the message portion of the oldest message record, first.
Where the transmission of the message is successful, the message transmission object deletes the message record from the queue table and arranges the transmission of the message portion of the oldest message record in the queue table given that the former oldest message record has been deleted from the queue table.
Where the transmission of the message is unsuccessful, the message transmission object may delay re-attempting transmission of the message portion of the oldest message record in the queue table for a predetermined waiting time. Additionally, the message transmission object may store the time of the last attempt to transmit the message in a Last Attempt Time field associated with the Message field. The message transmission object may also read a value from a Transmission Attempt Number field associated with the Message field, increment the value by one and store the incremented value in the Transmission Attempt Number field.
Rather than delaying re-attempting transmission for a predetermined waiting time, the message transmission object may wait for a signal from the operating system of the mobile device 101, where the signal indicates that communications to the network have been re-established.
According to a message expiry queue management method, exemplary steps of which are illustrated in
Where the current time is determined (step 506) to be greater than the time stored in the Message Expiry Time Stamp field of the selected message record, the queue management object may pass an indication of the message expiry to the event handler 304 so that an event callback (step 510) may be arranged to indicate, to the user, the expiry of the lifespan of the message record. As will be apparent to a person of ordinary skill, in an exemplary event callback, the screen generation engine 306 may arrange for the presentation, on the display 226 of the mobile device 101, of a dialog that indicates, “The lifespan of this message has expired. Do you wish to re-attempt transmission of the message or cancel transmission?”.
Responsive to determining (step 512) that the user has indicated that transmission of the message portion of the selected message record should be cancelled, the event handler 304 may trigger execution of a message record deletion method to delete (step 514) the selected message record from the queue table.
Where the mobile device 101 is a PocketPC, the relational database of which the queue table is a part may be managed by the known Pocket Access application. Deletion of a message record, as required by step 510, may be accomplished using a “DELETE FROM TBLOUTBOUNDQUEUE” statement supplying the primary key of the message record. A similar mechanism may be used for the deletion of a message record in a queue table managed by a database application executed on a Palm™ operating system.
After deleting the selected message record, the queue management object may determine (step 508) whether there are message records in the queue table that have not yet been considered. If all message records have been considered, the method of
Responsive to determining (step 512) that the user has indicated that transmission of the message portion of the selected message record should be re-attempted, the event handler 304 may trigger the virtual machine 300 to call the message generation method to generate (step 516) a new message expiry time stamp. The new message expiry time stamp may be generated by determining the current time and adding, to the current time, a time span based on the value of the TTL attribute, stored as part of the message record, to the current time. In the case in which the value of the TTL attribute has not been stored as part of the message record, a time span to add to the current time to generate (step 516) a new message expiry time stamp may be determined, for instance, as a difference between the current time and an indication of the time of creation of the message record.
The virtual machine 300 may then call the message record storage method to update (step 520) the selected message record in the queue table. That is, the message record storage method writes the new message expiry time stamp to the Message Expiry Time Stamp field of the selected message record and, by doing so, replaces the old message expiry time stamp. Advantageously, the rest of the selected message record remains unchanged by the message record storage method.
After updating the selected message record in the queue table, the queue management object may determine (step 508) whether there are message records in the queue table that have not yet been considered. If all message records have been considered, the method of
Notably, in an alternative message expiry queue management method, the queue management object may not interact with the user. Instead, where the current time is determined (step 506) to be greater than the time stored in the Message Expiry Time Stamp field of the selected message record, the queue management object may delete (step 514) the selected message record from the queue table. After deleting the selected message record, the queue management object may determine (step 508) whether there are message records in the queue table that have not yet been considered. If all message records have been considered, the method of
Advantageously, messages generated according to unique ACTION elements types may be configured to each have a unique lifespan. That is, the unique ACTION elements may have unique TTL attributes. The lifespan may be, for example, based on priority and message content.
Other modifications will be apparent to those skilled in the art and, therefore, the invention is defined in the claims.
This document describes the structure and syntax of the ARML language.
The document is intended to be read by AIRIX developers and users of ARML.
ARML AIRIX Markup Language
XML Extensible Markup Language
ARML is an XML markup language used by the AIRIX platform. It performs three tasks;
ARML has been designed with the following goals in mind;
The diagram below illustrates how ARML is used.
The key to ARML usage is the application definition file held on the AIRIX server. This file defines the AIRIX tables for the application, the allowed message set and the user interface definitions for the application on a given device.
The scratchpad is used as a temporary storage area where a global value or a value associated to a screen can be saved for future use. The syntax for a scratchpad value is as follows:
The syntax for retrieving a global scratchpad value can also be used to retrieve screen scratchpad values.
There are several variables that are available that will retrieve application and system values to be used throughout the application. The syntax for these variables are as follows:
[DATE]—returns the current system date, formatted as dd mmm yy
[TIME]—returns the current system time, formatted as hh:mm:ss am/pm.
[SYS.VAR.DATE]—returns the current system date, formatted as dd mmm yy
[SYS.VAR.MOBILEID]—retrieves the device's Mobile ID
[SYS.VAR.APPVERSION]—retrieves the version number of the application.
[SYS.VAR.SCVERSION]—retrieves the version number of the Smart Client.
[SYS.VAR.ARMLMAJOR]—retrieves the ARML major version of the application.
[SYS.VAR.ARMLMINOR]—retrieves the ARML minor version of the application.
[SYS.FUNC.DATEADD([SYS.VAR.DATE],±x)]—The Date Arithmetic tag is used to add or subtract days from the current date. In the tag, x represents the number of days added or subtracted. Developers can also choose to substitute a hard-coded date value in the Date Arithmetic tag, in the place of the [SYS.VAR.DATE] tag.
[SYS.FUNC.DATETOSTR([SYS.VAR.DATE],d mmm yyyy h:nn:ss tz)]—The Date To String tag is used to convert date data to a string value.
[SYS.FUNC.STRTODATE([SYS.VAR.DATE],d mmm yyyy h:nn:ss tz)]—The String to Date tag is used to convert string data to a date value, in the RFC 1123 format.
The single-field lookup will run a simple SELECT query with one where-clause to retrieve specific data. The syntax is as follows:
[DB.DOLOOKUP(table, field,wherefield,wherevalue)]
The application definition section defines the AIRIX tables and ARML data packages that are used for transactions involved with a specific application.
The ARML application definition has the following structure;
These tags (<AXSCHDEF> . . . </AXSCHDEF>) mark the start and end of the application definition. THE AXSCHDEF tag has two attributes;
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <AXTDEFS> . . . </AXTDEFS> pair marks the start and end of the table definitions section. It has no attributes.
The <DPACKETS> . . . </DPACKETS> pair marks the start and end of the data package definitions section. It has no attributes.
The <DEVICES> . . . </DEVICES> pair marks the start and end of the device interface definitions section. It has no attributes.
The table definitions section defines the tables on the mobile device for the application
The table definitions section has the following structure;
Each table definition is enclosed within the <TDEF> . . . </TDEF> pair. The TDEF tag has the following attributes;
The <FIELDS> . . . </FIELDS> Tag pair marks where the fields in a given table are defined. The FIELDS tag has a no attributes.
The <FLD> . . . </FLD> tag pair defines a single field in a table. Enclosed between the tags is the field name. The <FLD> tag has the following structure;
An email application would use 2 tables for storing sent emails.
This translates into the following ARML fragment;
The package definitions section defines the structure of the application packages and the data that they carry.
The package definitions section has the following structure;
The <AXDATAPACKET> . . . </AXDATAPACKET> pair delimits a package definition. The tag has the following attributes;
The <TABLEUPDATES> . . . </TABLEUPDATES> pair marks the start and end of the table definitions section. It has no attributes.
Each table update is enclosed within the <TUPDATE> . . . </TUPDATE> pair. The TUPDATE tag has the following attributes;
The <PKGFIELDS> . . . </PKGFIELDS> tag pair marks where the fields in a given data package are defined. The PKGFIELDS tag has no attributes.
The <PKGFLD> . . . </PKGFLD> tag pair defines a single parameter in a given data package. Enclosed between the <PKGFLD> . . . </PKGFLD> tags is the field name. The <PKGFLD> tag has the following attributes;
Using the table definitions example in section 3.2.4, when the user sends an email, a data package to transport the data would update the ‘SENTITEMS’ table and the ‘RECIPIENTS’ table. The following ARML fragment defines such a data package;
The display definitions section contains the user interface definitions for the various mobile devices that an application supports.
The device display definitions section has the following structure;
The <DEV> . . . </DEV> pair delimits an interface definition for a specific device. The tag has the following attributes;
The <SCREENS> . . . </SCREENS> pair delimits the screens definition for a specific device. The tag has one attribute;
The <SCREEN> . . . </SCREEN> pair, and its contents are described in section 5.1.3.1
The following example shows the screen definitions section for an application that allows a user to view their inbox and the mails in it.
This section describes the format of application defined packages.
This section describes the general structure of an application-specific data package. As described in section,
System level packages are sent between AIRIX and the application server, and between AIRIX and the AVM
An application defined package has the following structure;
The <HEAD> tag is as described in section 7.1.3.1
The <PKG> . . . </PKG> tags delimit the package data. The PKG tag has the following attributes;
The format and rules for application-defined data packages depend on the package definitions for that application.
A sample data package following the rules in section 3.3.4 would have a body section like this;
We will use this sample package to illustrate how packages are derived from the package definition file. The first tag in the package is the BODY tag. This tag defines which type of package it is;
The package has two sections, which correspond to the two table update sections in the package definition;
The ‘MAIL’ section updates the ‘SENTITEMS’ table in the database. It does not update multiple rows. The ‘RECIPS’ section updates the ‘RECIPIENTS’ table in the database; it does update multiple rows, and each row is contained within a pair of <RCP> tags.
Each of the MAIL and RCP tags have fields which are used to update the field in the database tables;
A screen definition file defines a single screen for a specific device.
A screen definition file has the following structure;
<SCREEN> . . . </SCREEN> pair marks the start and end of the screen definitions section as attribute—
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The <QUERIES> . . . </QUERIES> pair marks the start and end of the queries definitions section. It has no attributes.
The <MENUS> . . . </MENUS> pair marks the start and end of the menu definition section. It has no attributes.
The <BUTTONS> . . . </BUTTONS> pair marks the start and end of the button definitions section. It has no attributes.
The <TEXTITEMS> . . . </TEXTITEMS> pair marks the start and end of the text items section. It has no attributes.
The <EDITBOXES> . . . </EDITBOXES> pair marks the start and end of the editboxes section. It has no attributes.
The <CHOICEITEMS> . . . </CHOICEITEMS> pair marks the start and end of the choiceitems section. It has no attributes.
The <IMAGES> . . . </IMAGES> pair marks the start and end of the images section. It has no attributes.
The <CHECKBOXES> . . . </CHECKBOXES> pair marks the start and end of the checkboxes section. It has no attributes.
The <LISTBOXES> . . . </LISTBOXES> pair marks the start and end of the listboxes section. It has no attributes.
The <GRIDS> . . . </GRIDS> pair marks the start and end of the grids section. It has no attributes.
The queries definition section describes any queries that need to be run to populate a screen.
The queries definition section has the following structure;
The <QUERIES> . . . </QUERIES> pair marks the start and end of query definition section. It has no attributes.
The <QUERY> . . . </QUERY> pair marks the start and end of a given query. It has the following attributes;
The <W> . . . </W> pair marks the start and end of a given where-clause. The value of the parameter is contained within the <W> . . . </W> tags. This value can be a specific value or a reference to a user interface field in the format “[SP.screen.savename] or [QU.query.field]”. It has the following attributes;
The menu definition section describes the menu for a given screen.
The menu definition section has the following structure;
The <MENUS> . . . </MENUS> pair marks the start and end of menu definition section. It has no attributes.
The <MENU> . . . </MENU> pair marks the start and end of a menu definition. It has the following attributes.
The <MENUITEM> . . . </MENUITEM> pair marks the start and end of a menuitem definition. It has the following tags;
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The buttons definition section describes the buttons that appear on a given screen.
The buttons definition section has the following structure;
The <BTN> . . . </BTN> pair marks the start and end of a button definition. It has one attribute
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The text items definition
The text items section has the following structure;
The <TI> . . . </TI> pair marks the start and end of the screen definitions section. It has attribute—
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The edit boxes definition section describes what edit boxes exist for the screen.
The edit boxes section has the following structure;
The <EB> . . . </EB> pair marks an edit box definition. It has the following attributes—
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The choice item definitions section describes the choice items that exist on a given screen. A choice item is an interface item that requires the user to make a selection from a list of options. It can be represented in different ways on different devices; on a RIM pager, it is a choice box, while on a WinCE device, it is a drop-down list.
The choice items section has the following structure;
The <CHOICE> . . . </CHOICE> pair marks the start and end of a choice item definition. It has these attributes—
The <ITEMS> . . . </ITEMS> pair marks the start and end of a list of items to be included in the in the choice item. If a datasrc is specified, the <ITEMS> section is ignored.
The <I> . . . </I> pair marks the start and end of an individual item in the choice items list. It has the following attributes:
The value between the pair is the text value that is to be displayed in the choice item.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The checkboxes section describes a check box that appears on a given screen.
The checkboxes section has the following structure;
The <CHK> . . . </CHK> pair marks a check box definition
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
The listboxes section describes a list box that appears on a given screen.
The listboxes section has the following structure;
The <LB> . . . </LB> pair marks a list box definition
The <ITEMS> . . . </ITEMS> pair marks the start and end of a list of items to be included in the in the list box. If a datasrc is specified, the <ITEMS> section is ignored.
The <I> . . . </I> pair marks the start and end of an individual item in the list box items list. It has the following attributes:
The value between the pair is the text value that is to be displayed in the list box. Can be a scratchpad or query value of the form [SP.screen.savename] or [QU.query.field].
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <EVENT> . . . </EVENT> pair marks the start and end of a user-interface level event definition. See section 6 for a detailed discussion of the Smart Client event model.
The <ACTION> . . . </ACTION> pair marks the start and end of an action definition. See section 6 for a detailed discussion of the Smart Client event model.
Grids allow data to be displayed in row-column format. Grids can display data from a data source (query) or they can contain hard coded values. Each column in a grid can be visible or hidden. Hidden values are maintained, but not visible to the user.
The grids section has the following structure;
<GRID> . . . </GRID> The grid item itself will have the following attributes
<COLS> . . . </COLS> This tag contains no attributes. But instead contains all the columns that are associated with the grid in the order in which they appear from left to right.
<COL> . . . </COL> This tag will determine the column specification for the grid. The attributes for this item are the following:
<ROWS> . . . </ROWS> This will Indicate any hard coded rows that would be created in the design studio. It does not contain any attributes but instead contains all the row definitions.
<R> . . . </R> This is the row declaration that contains all the values for the row that has been hard coded. It has no attributes itself, but contains the value definitions for the row.
<V> . . . </V> This definition contains the data that is related to the ROW and to the column.
An example of a grid declaration is as follows:
The Smart Client has a set of actions that it ties to events. Events can occur at the application level, the screen level or the user interface item level; an application level event is listened for throughout the operation of the application, a screen level event is listened for while the screen is displayed, and so on. If an action for an event is defined at multiple levels, the lowest level has precedence; i.e., user interface actions override screen level actions, which override application level actions. An attempt to list an event multiple times at the same level (application, screen, item) is invalid and will generate an error message.
The following ARML fragment illustrates this schema (tags and attributes not relevant to the event model have been omitted);
The <EVENTS> . . . </EVENTS> pair marks the start and end of the events section. It has no attributes.
The <EVENT> . . . </EVENT> pair marks the start and end of an event definition. It has the following attributes;
The button click event occurs when the user selects a button. It has no attributes.
The menu items selected event occurs when the user selects a menu item. It has no attributes.
The data event occurs when ARML data is received from the wireless interface. It has the following attributes;
The <ACTION> . . . </ACTION> pair marks the start and end of an event definition. It has one fixed attribute, and a number of attributes that may or may not appear depending on the type of action required. The fixed attribute is;
The open action tells the Smart Client to open a new screen. It adds one extra attribute to the ACTION tag;
The arml action tells the Smart Client to compose and send an arml package. It does not add any attributes to the ACTION tag, but has the following subtag;
Contained between the <ARMLTEXT> . . . </ARMLTEXT> pair is one of the application-defined data packages. Individual data items are marked with the user interface item that their value should be taken from, in the format “[SP.screen.savename]”, or [QU.query.field]. If screen is not the current screen, then the Smart Client will look for the data in its scratchpad. See section 0 for an example of the ARML action.
The save action tells the Smart Client to save all fields marked as persistent (i.e., they are defined with SAVE=“Yes”) to be saved to the scratchpad area. It has no attributes.
The purge action tells the Smart Client to clear all fields that have been saved to the scratchpad. It has no attributes.
The notify action tells the Smart Client to activate the configured notification on a device. For devices where this has no meaning, it will cause a beep to be played. It has no attributes.
The close action tells the Smart Client to close the application. It has no attributes.
The alert action tells the Smart Client to display an alert item (e.g., a message box on Windows, an alert box on the RIN pager, an alert card on WAP). It has the following attributes;
The integration action tells the Smart Client to pass data to an interface exposed on a device.
For example a COM interface on Pocket PC. This action will allow the developer to pass a parameter into an exposed method and then also save the result of that method in a global scratchpad value. The contents of the integration action's element are the input values to be passed to the interface. It has the following attributes;
Example ARML:
The close screen action tells the Smart Client to close all open instances of the screen specified by name in the NAME attribute. This action has the following attributes:
The refresh action tells the Smart Client to re-run any queries and re-initialize all UI elements on the screen with the name specified by the NAME attribute. If there are multiple open instances of the screen, all open instances will be refreshed. The refresh action has the following attributes:
The saveitem action tells the Smart Client to create a new scratchpad item or to edit an existing scratchpad item. The value of the scratchpad item is defined within the <ACTION> . . . </ACTION> tags. The saveitem action has the following attributes:
This action will contain two lists of actions. One a list of actions to perform if the condition evaluates to TRUE (IFLIST), and another list of actions to perform if the condition evaluates to FALSE (ELSEIFLIST).
The structure of the action is as follows:
Conditions are used in conjunction with the IF Action. Conditions are specified as follows:
The following is a description of each of the supported conditions:
The following example serves to illustrate how a screen is used to compose a data package to be sent back to the AIRIX server. The example used is a screen giving the bare functionality for composing a basic email message—to simplify the example, the user cannot cancel the action, and multiple recipients are not allowed.
The Editboxes section at the bottom defines 3 editboxes, with the names of ‘To’, ‘Subject’, and ‘Body’;
There is one button on the screen, with the name of ‘OK’;
When the user clicks on OK, the button composes an ARML package to be sent to the AIRIX server;
The ARML package sent is an ‘ME’ package as described in the example in section 4.2.1. It is composed as follows;
The subject field is taken from the edit box named ‘Subject’;
The recipients field is taken from the edit box named ‘Subject’;
Finally the text of the message is filled from the ‘Body’ field;
This section describes the primitives that are used for system-level interactions that the AIRIX Smart Client has with the AIRIX server.
System level packages are sent between AIRIX and the AVM (wirelessly).
System interactions are performed by exchanging ARML data packages with the following structure;
The package header is delimited by the <HEAD> . . . </HEAD> tags. Contained in text between the two tags is the id of the destination mobile. The HEAD tag has the following attributes;
The <SYS> . . . </SYS> pair contains the actual system package. The tag does not have any attributes.
Device registration packages are sent from the AVM to the AIRIX server when a user registers their device.
A device registration package has the following structure;
The <REG> . . . </REG> pair delimit the registration request. The tag has no attributes.
The <USERNAME> . . . </ USERNAME > pair contain the user name. The tag does not have any attributes.
The <PASSWORD> . . . </PASSWORD> pair contain the password. The tag does not have any attributes.
This package would be sent by a user, to register their device under a given name;
This packages is sent back from the AIRIX server to the AVM to confirm that the device has been registered.
A registration confirmation package has the following structure;
The <REGCONFIRM> . . . </REGCONFIRM> pair delimit the confirmation. The tag has no attributes.
The <VALUE> . . . </VALUE> pair contains the status of the registration request. The following text strings are allowable;
CONFIRM—this means that the registration request was successful
NOTREGPLATFORM—this means that the registration request failed because the device is not registered for the platform
INVALIDUSERPASS—this means that the registration request failed because the user name or password was not valid
NODEVICE—this means that the registration request failed because the device was not registered previously by an application
The <APPS> . . . </APPS> pair contains a list of applications for the device.
The <APP> . . . </APP> pair contains an application header. It has the following attributes;
This package would be sent to confirm the example request in section 7.2.4;
Find applications packages are sent from the AIRIX component to the AIRIX server when a user wishes to refresh their list of applications on a device
A device registration package has the following structure;
The <FINDAPPS> . . . </FINDAPPS> pair delimit the application registration request. It has no attributes.
This package is sent back from the AIRIX server to the AVM to and contains a list of applications available for the user
A registration confirmation package has the following structure;
The <FINDAPPSCONFIRM> . . . </FINDAPPSCONFIRM> pair delimit the confirmation. The tag has no attributes.
The <APPS> . . . </APPS> pair contains a list of applications for the device.
The <APP> . . . </APP> Dair contains an application header. It has the following attributes;
Application registration packages are sent from the AIRIX component to the AIRIX server when a user wishes to register or deregister for an application.
A device registration package has the following structure;
The <APPREG> . . . </APPREG> pair delimit the application registration request. The tag has the following attributes;
This packages is sent back from the AIRIX server to the AVM to confirm that the application has been registered or deregistered.
A registration confirmation package has the following structure (note that for DELETE types, the <INTERFACE> . . . </INTERFACE> section will not be included);
The <APPREGCONFIRM> . . . </APPREGCONFIRM> pair delimit the confirmation. The tag has the following attributes;
The <INTERFACE> . . . </INTERFACE> pair delimit the interface definition. The tag has the no attributes, and contains an interface definition as laid out in section 3. Note that instead of the <DEVICES> . . . </DEVICES> tags in section 3.1.3.6, it will be replaced by <SCREENS> . . . <SCREENS> with the screen definitions for only the one device that the interface is being sent to (see section 3.4.3.2 for the definition of the <SCREENS> tag). This section will not be sent for APPREGCONFIRM messages of TYPE=“DELETE”.
The following example shows the application confirmation with screen definitions for an application that allows a user to view their inbox and the mails in it.
If a user wishes to set the current device as their active device, the AVM must send a ‘set active device’ package to the AIRIX server
A ‘set active device’ package has the following structure;
The ‘set active device’ package is shown by the <SA> . . . </SA> tags. The tag has no attributes; the tag pair contains the user's username
This package would be sent by a user with the username of ‘scotty’;
This packages is sent back from the AIRIX server to the client in response to a request to set the current device as the active one.
A ‘set active device response’ package has the following structure;
The <SACONFIRM> . . . </SACONFIRM> pair delimit the confirmation. The tag does not have any attributes.
The <VALUE> . . . </VALUE> pair contains the status of the registration request. The following text strings are allowable;
CONFIRM—this means that the registration request was successful
NOTREGISTERED—this means that the registration request failed because
This package would be sent by the AIRIX server to confirm a set active request;
This package is sent back from the AIRIX server to the AVM in response to a request to interact with an application that is no longer registered with AIRIX.
An ‘invalid application’ package has the following structure;
The <NOAPP> . . . </NOAPP> pair delimit the confirmation. The tag has no attributes.
The <VALUE> . . . </VALUE> pair delimit the return code. It can only be NOAPPLICATION—Application not found.
This package would be sent in response to a request if the application cannot be found;
The section that defines Application to server system interactions has been made obsolete by the document “AIRIX Polling XML Language Specification”. It describes an XML-HTTP interface to AIRIX using POST and GET commands to a web-based ISAPI DLL.
The following enhancements to ARML are planned;