UNPKG

@wmfs/tymly

Version:

A framework for building and sharing workflows in Node.js

23 lines (18 loc) 395 B
'use strict' class DrinkingWater { init (stateConfig, options, callback) { callback(null) } enter (tymly, data, callback) { callback(null) } leave (tymly, data, callback) { const ctx = tymly.ctx console.log(' * And to finish the meal, ' + ctx.petName + ' had some water') callback(null) } } module.exports = { autoNudge: true, stateClass: DrinkingWater }