methods property

Map<String, Function> methods
getter/setter pair

available method for processing. Each method function should have two params: <StubbleMessage msg, StubbleContext context> For a state to process a message of concrete type, it must implement a method with key of Message.getName() value.

Implementation

Map<String, Function> methods = {};