onStart Attribute
The onStart attribute is an expression that is evaluated brefore preforming an action. This expression can be used to increment a counter or preform other functions defined in seperate files included with the Import tag.
Examples
<PythonPath path="./"/> <Import import="xyz"/> ... <StateModel name="TheState" initialState="InitialReset"> <State name="InitialReset"> <Action type="changeState" ref="NextState" onStart="xyz.reset_counter(self)"/> </State> ... </StateModel>