Interface AutoDisablingScriptStrategy
- All Known Implementing Classes:
DefaultAutoDisablingScriptStrategy,DoNotExecuteWhenDisabledStrategy
public interface AutoDisablingScriptStrategy
This interface is a strategy which can be passed to the
ScriptingLanguagesService when obtaining
ScriptExecutable to enable auto-disabling scripts on failure.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisDisabled(ScriptExecutable executable) Checks whether givenScriptExecutableis disabled.voidonException(Exception exception, ScriptExecutable executable, Map<String, Object> scriptContext) This method reacts on Exception thrown fromScriptExecutable.
-
Method Details
-
onException
void onException(Exception exception, ScriptExecutable executable, Map<String, Object> scriptContext) This method reacts on Exception thrown fromScriptExecutable. -
isDisabled
Checks whether givenScriptExecutableis disabled.
-