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
Modifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
Fields inherited from class org.chenile.stm.action.scriptsupport.BaseScriptingAction
scriptingStrategy
Fields inherited from class org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction
componentPropertiesHelper, enableInlineScriptsInProperties
-
Constructor Summary
-
Method Summary
Methods inherited from class org.chenile.stm.action.scriptsupport.BaseScriptingAction
setScriptingStrategy
Methods inherited from class org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction
getComponentProperty, getComponentProperty, isEnableInlineScriptsInProperties, setComponentPropertiesHelper, setEnableInlineScriptsInProperties
Methods 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:
doExecute
in classSTMActionBase<StateEntityType extends StateEntity>
- Throws:
Exception
-