This class represents the main class to be inherited by state that needs to be displayed on the Application Composer and State Editor, and to be invoked by the "Processing Engine" at runtime of an application.
public class SmappStatePlugin
All public members of the SmappStatePlugin class, including all inherited members.
Name | Description |
---|---|
Current customer Customer of this session. | |
Return the input attributes specified by the state. | |
Get the instance name. | |
Return the output attributes specified by the state. | |
The state name is used for display on the state editor. | |
The detailed description about the state, and documentations on how to use the state including the follow-up transitions. | |
To indicate whether the state can be used as the follow-up state. | |
Default implementation is empty. | |
This method is called by the processing engine when the state is activated from external source, for example, incoming SMS message. | |
This method is always called by the processing engine when the state is activated by the follow-up transition. | |
Set the SMPP acknowledgement request flag for the current session. | |
Set the instance name. | |
No default implementation. | |
No default implementation. | |
Indicate whether this state support encryption. | |
Indicates if the state supports dynamic (Dyn) transition. | |
Indicate if the state uses the Fail follow-up transition type. | |
Indicate if the state supports transfer flow to another application. | |
Indicate if the state uses the OK follow-up transition type. | |
Indicate if the state may send SMS message to the current consumer. |
All package members of the SmappStatePlugin class, including all inherited members.
Name | Description |
---|---|
The state unique ID. |
All protected members of the SmappStatePlugin class, including all inherited members.
Name | Description |
---|---|
Helper method in state development. | |
Helper method in state development. | |
Helper method in state development. | |
Determine the follow-up transition that match the message in the state processing context. | |
Determine the follow-up transition that match the type provided in the input parameter. | |
Get the value of session attribute (SessionAttribute) based on the specified key. | |
Get session attributes for the current state in the current session. | |
Session ID that the application is running. | |
Process the SMS message by replacing all the session variables with the actual session variable value. | |
Returns all the attributes (input and output) specified in the state. | |
Helper method in state development. | |
Indicate whether the current state is encrypted. | |
Delegate method call by the processMessage(SmappStateProcessingContext). | |
Delegate method call by the processState(SmappStateProcessingContext, SmappStateProcessingAction). | |
Saving attributes that has holdValue (see OutputAttribute#getHoldValue()) in bulk for better performance. | |
Save the input parameters to the session attribute (SessionAttribute). | |
Save the session attributes in the Map of the current state in the current session to database. | |
Send SMS from the current session. | |
Instance name. |
As such it should be regarded as the 'external' API. Any class that extends this class will be called State for the purpose of the API documentation.
There are a significant number of infrastructure functionalities performed by this base class that simplify the state development, including extra methods to allow processing of input and output attribute values and session variables.
Please refer to StatePlugin for more detailed description of the processing engine life cycle.
continueDyn method
continueFail method
continueOk method
determineFollowingSmappStateFromPattern method
determineFollowingSmappStateFromTransitionType method
getCurrentCustomer method
getInputAttributes method
getOutputAttributes method
getSessionAttributeForKey method
getSessionAttributes method
getSessionId method
getSmsText18nReplaced method
getStateAttributes method
getStateNotes method
handleFatal method
isCurrentStateEncrypted method
isSelectable method
loadStateAttributes method
processMessage method
processMessageLogic method
processState method
processStateLogic method
saveOutputAttributes method
saveSessionAttribute method
saveSessionAttributes method
sendSmappSms method
setAckMessage method
shutdown method
startup method
supportEncryption method
supportsDynTransition method
supportsFailTransition method
supportsGoToApplication method
supportsOkTransition method
supportsSendSmsMessage method
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, Sybase, Inc. - Brand Mobiliser API 1.3.0 - October 24, 2012 |