public interface ActionManager extends EngineModule
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(ActionAdapter actionAdapter)
Adds a new action adapter.
|
Object |
callAction(ActionAdapter actionAdapter,
List<Object> args)
Calls the action.
|
Object |
callAction(String actionName,
List<Object> args)
Calls the action.
|
ValueHolder<Object> |
callActionIfExists(String actionName,
List<Object> args)
Calls the action if it 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.
|
boolean |
hasAction(String name)
Returns
true if an action named name is registered. |
void |
removeAction(String actionName)
Removes the action adapter.
|
isFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, getName, setDescription, setLabel, 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 if the action is not registered.actionName - the name of the registered action.args - the arguments for the action call. This parameter may be null and in that case no arguments will be passed to the
action.Object callAction(ActionAdapter actionAdapter, List<Object> args)
ProcessorNotFoundException if the action is not registered.actionAdapter - the action adapter.args - the arguments for the action call. This parameter may be null and in that case no arguments will be passed to the
action.ValueHolder<Object> callActionIfExists(String actionName, List<Object> args)
actionName - the name of the registered action.args - the arguments for the action call. This parameter may be null and in that case no arguments will be passed to the
action.null if the action is not registered.Map<String,ActionAdapter> getRegisteredActionAdapterMap()
boolean hasAction(String name)
true if an action named name is registered.name - action name.true if an action named name is registered.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.