processMessageLogic(SmappStateProcessingContext) method

Process incoming message.

Syntax

final SmappState processMessageLogic ( SmappStateProcessingContext context ) throws MwizProcessingException, DBException

Parameters

Returns

follow-up transition

Exceptions

Usage

The

AbstractDynamicMenu

support "Send SMS" feature, meaning it can send message and wait for the response, a very similar behavior to the base "Send SMS" state. This

processMessageLogic(SmappStateProcessingContext)

method will be called during processing of the incoming message. This method processes the incoming message, most likely, containing the selected menu item. The message can be either a selection or a menu control (such as: more or exit).

If the incoming message contains a valid selection of menu item index, the

saveSessionVariables(String, String)

method will be called followed by

continueOk()

.

If the incoming message conatins a valid menu control index, the processing is forwarded to

processStateLogic(SmappStateProcessingContext, SmappStateProcessingAction)

method.

Intentionally made final so that it cannot be override.

follow-up transition