Class SwitchAction<StateEntityType extends StateEntity>
java.lang.Object
org.chenile.stm.impl.STMActionBase<StateEntityType>
org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction<StateEntityType>
org.chenile.stm.action.scriptsupport.BaseScriptingAction<StateEntityType>
org.chenile.stm.action.scriptsupport.SwitchAction<StateEntityType>
- All Implemented Interfaces:
ComponentPropertiesAware,ScriptingStrategyAware,STMAutomaticStateComputation<StateEntityType>
public class SwitchAction<StateEntityType extends StateEntity>
extends BaseScriptingAction<StateEntityType>
Emulates a switch construct. Introduces the following custom attributes:
expression - the expression to be evaluated.
case-FOO - the event that would be returned if the expression's value is 'FOO'
default - the event that would be returned if none of the cases match the value of the expression.
- Author:
- Raja Shankar Kolluru
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class org.chenile.stm.action.scriptsupport.BaseScriptingAction
scriptingStrategyFields inherited from class org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction
componentPropertiesHelper, enableInlineScriptsInProperties -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.chenile.stm.action.scriptsupport.BaseScriptingAction
setScriptingStrategyMethods inherited from class org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction
getComponentProperty, getComponentProperty, isEnableInlineScriptsInProperties, setComponentPropertiesHelper, setEnableInlineScriptsInPropertiesMethods inherited from class org.chenile.stm.impl.STMActionBase
cleanUp, doSetup, execute
-
Field Details
-
EXPRESSION
- See Also:
-
CASE_PREFIX
- See Also:
-
DEFAULT
- See Also:
-
-
Constructor Details
-
SwitchAction
public SwitchAction()
-
-
Method Details
-
doExecute
- Overrides:
doExecutein classSTMActionBase<StateEntityType extends StateEntity>- Throws:
Exception
-