[SOLVED] Lambda Functions or similar: Create an array / map to iterate through to send 'timed' commands

What do you find lacking in that example?
A browse through all the “design patterns” is a good grounding in capabilities of rules DSL.

This may be the wheel already invented -

I think you may need
val HashMap<String, Object> functionMap = new HashMap()

I think you need either
val Functions$Function2 execCommands = [ ...
or
val execCommands = [ ...