public interface ActionManager extends EngineModule
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(ActionAdapter actionAdapter)
Adds a new action adapter.
|
Object |
callAction(String actionName,
List<Object> args)
Calls the action.
|
boolean |
existsAction(String name)
Returns
true if an action named name exists. |
ActionAdapter |
getActionAdapter(String actionName)
Returns an action adapter or
null if action named actionName doesn't exist. |
List<ActionAdapter> |
getActionAdapters(String knowledgeBaseRegexp,
String actionNameRegexp)
Returns action adapters matching the knowledge base name and the action name regular expressions.
|
Map<String,ActionAdapter> |
getRegisteredActionAdapterMap()
Returns registered processor adapter map.
|
void |
removeAction(String actionName)
Removes the action adapter.
|
isFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getDisplayName, getName, setDescription, setDisplayName, setNamevoid addAction(ActionAdapter actionAdapter)
actionAdapter - a new action adapter.void removeAction(String actionName)
actionName - the name of the action adapter.Object callAction(String actionName, List<Object> args)
ProcessorNotFoundException when such action is not registered.actionName - name of registered action.args - arguments for an action call. This parameter may be null and in that case no arguments will be passed to the
action.Map<String,ActionAdapter> getRegisteredActionAdapterMap()
boolean existsAction(String name)
true if an action named name exists.name - action name.true if an action named name exists.ActionAdapter getActionAdapter(String actionName)
null if action named actionName doesn't exist.actionName - action name.List<ActionAdapter> getActionAdapters(String knowledgeBaseRegexp, String actionNameRegexp)
null value of the regular
expression means that it will match any name.knowledgeBaseRegexp - knowledge base name regular expression.actionNameRegexp - action name regular expression.Copyright © 2016–2019 Softelnet. All rights reserved.