Method decorator that marks a method as a state entry handler. The decorated method will be called when the state machine enters the specified state.
The state to handle entry for
A method decorator
@kosStateEntry('pouring')handlePouringStart(): void { this.logger.info('Pour started'); EventBus.publish(TOPIC_POUR_STARTED, { id: this.id });} Copy
@kosStateEntry('pouring')handlePouringStart(): void { this.logger.info('Pour started'); EventBus.publish(TOPIC_POUR_STARTED, { id: this.id });}
Method decorator that marks a method as a state entry handler. The decorated method will be called when the state machine enters the specified state.