You can use the following API to retrieve a token value. It is equivalent to $token$.
 

public static Object getTokenValue() {
...
}


The following code fragment shows how to get a token value of an active model element in ALH API

ALH.getTokenValue();

If there are no tokens available, it will return null.