processStateLogic(SmappStateProcessingContext, SmappStateProcessingAction) method

Contains the actual processing logic for constructing the menu list.

Syntax

final SmappState processStateLogic ( SmappStateProcessingContext context , SmappStateProcessingAction action ) throws MwizProcessingException, DBException

Parameters

Returns

follow-up transition

Exceptions

Usage

The following methods will be called:

  • init(SmappStateProcessingAction) - for initialization and getting the menu items from the source
  • constructMenuList() - for getting the formatted menu list in key-value pair form

If the

constructMenuList()

returns a list containing a single item only, the

saveSessionVariables(String, String)

will be called and the method will return with the follow-up transition (

SmappState

) from the

continueWhenSingleEntry(SmappState)

. Otherwise, the constructed SMS menu message will be sent out.

Intentionally made final so that it cannot be override.

follow-up transition