Developer

processMessage(SmappStateProcessingContext) method

This method is called by the processing engine when the state is activated from external source, for example, incoming SMS message.

Syntax
Syntax
public SmappState processMessage (SmappStateProcessingContext context) throws MwizProcessingException, DBException, CryptoException

Parameters

  • context the state processing context containing all the necessary object needed while processing the state.

Returns

the follow-up transition

Exceptions

  • MwizProcessingException any exceptions that warrant terminating the application
  • DBException any database exceptions that warrant terminating the application
  • CryptoException any encryption exceptions that warrant terminating the application

Remarks

See this API documentation listed above.

Typically, this method should be implemented when the supportsSendSmsMessage() is set to true, to handle the reply SMS message.

Helper methods that will return the SmappState are as follow:
  • continueOk()
  • continueFail()
  • continueFail(String)
  • continueDyn(String)
  • continueDyn(Integer)
  • continueDyn(Long)

Used by: processing engine