Helper method in state development.
Syntax
void
handleFatal
(
SmappStateProcessingContext
context
,
SmappStateProcessingAction
action
) throws MwizProcessingException, DBException
Parameters
-
context –
the state processing context containing all the necessary object needed while processing the state.
-
action –
SmappStateProcessingAction is used to communicate back to the processing engine how to proceed.
Exceptions
-
MwizProcessingException –
any exceptions that warrant terminating the application
-
DBException –
any database exceptions that warrant terminating the application
Usage
This method will attempt to find the follow-up transition of FAIL type and set the corresponding follow-up state to the
SmappStateProcessingAction
.
If not found, it will set the processing engine to terminate, or
SmappStateProcessingAction
.terminateProcessing();