You can use the following APIs to call any Behavior by its name.
 

public static Object callBehavior(String name) {
...
} 
public static Object callBehavior(String name, List<?> arguments) {
...
} 
public static Object callBehavior(String name, List<?> arguments, boolean isSynchronous) {
...
} 

The following example shows how to call the "test" specified Behavior in ALH API

 

value = ALH.callBehavior("test");

You can also give initial parameter values in which the arguments lists must be created.

 

arguments = ALH.createList();
arguments.add("value1");
arguments.add("value2");
value = ALH.callBehavior("test", arguments);

If a found Behavior value is null or an argument's size is not equal to the in or inout parameter's size of the found Behavior, an IllegalArgumentException will be thrown.