UNPKG

@wmfs/tymly

Version:

A framework for building and sharing workflows in Node.js

23 lines (18 loc) 378 B
'use strict' class EatingTuna { init (stateConfig, options, callback) { callback(null) } enter (tymly, data, callback) { callback(null) } leave (tymly, data, callback) { const ctx = tymly.ctx console.log(' * ' + ctx.petName + ' had some tuna for his main.') callback(null) } } module.exports = { autoNudge: true, stateClass: EatingTuna }