![]() |
Getting startedDocumentation |
How it worksGnGSmS is based on four concepts:
ServicesServices are used to open and maintain network connections. while the the standard package includes several services like "SMPP Binder" , "HTTP Server" and "Datasource", you can created your own services as well
Request ContextA context variable is referred to using this format: ${variable}. Some context variables are create at the moment the message is received:
For example, consider a message was at mobile#98765432 from #012345678, saying
"reg John Smith", let us assume also it was recieved by an HTTP service named
myservice
Action TreeUse the action tree is where you create and customize your application behaviour. An action is an activity which is executed against the received message, several types of actions are available, below you find a list of the currently available actions, just to give an example an action could be the sending of an SMS or an email, it can also be executing a database query.
As mentioned above, a request context is created and attached to every sms received, this request is passed to the action at the root of the tree Each action in the tree has an expression, this expression can be evaluated to true/false, in case of a "true" the action is executed, otherwise the action is skipped. An action with empty expression is always executed. An action also have access to the request variables, it can read, update and
create context variables. After the action is finished it hands the request to the next action in the tree, and so on. In the standard package there are several types of actions:
//TODO add link to action specifications and javadocs
GatewaysTo send out messages using the Sender action (see Actions tree section), you need to create a gateway. Gateways are there to save the time of entering the connection details with every sender action in the actions tree. Gateways are used to send messages.
//TODO add link to gateway specifications and javadocs
|
|