Runtime components : Channels components : SMS handler : Request handler : SMS commands definition
  
SMS commands definition
SMS command definition is used by request handler to determine which UDTT Operation is to be called. The command definition is also used to convert the data of channel context to operation context. The SMS command configuration contains the following information:
 
Parameter
Description
Mandatory
shortCode
Short code of SMS Command. It is recommended that you use the short name of the operation.
Y
operationName
BTT Operation name for this SMS Command
Y
parameters
Parameter list of the SMS Command. The parameters should be deli ned by sequence.
Y
ParameterNames configuration:
 
Parameter
Description
Mandatory
name
Field name of the parameter. It should be equal with the field id of the context data field to which data is mapped.
Y
optional
If this parameter is optional. Note there can only be one optional parameter for a SMS Command at most (default: false).
Y
type
The java type of the parameter. The type will be used for validation and data converting to context. (default: java.lang.String)
Y
description
Description text for this parameter.
 
Following is an example for SMS commands:
SMS command example
SMS command
SMS command definition
FT <Customer ID=""> {Source account number} <Payee nick=""> <Amount>
<>: mandatory
{}: optional </Amount></Payee></Customer>
<list id="SMSCommandTable">
<com.ibm.btt.channel.sms.config.CommandMetaData id="Tansfer" shortCode="FT" bttOperationName="accountTransferOp">
<list Injection="parameters">
<com.ibm.btt.channel.sms.config.CommandParamter name="custid"/>
<com.ibm.btt.channel.sms.config.CommandParamter name="sourceAccount" optional="true"/>
<com.ibm.btt.channel.sms.config.CommandParamter name="nickName" type="java.lang.String"/>
<com.ibm.btt.channel.sms.config.CommandParamter name="amount" type="java.lang.Double"/>
</list>
</com.ibm.btt.channel.sms.config.CommandMetaData>
<!-- other SMS command defintions..... -->
</list>
Go up to
Request handler