UNPKG

@wmfs/tymly

Version:

A framework for building and sharing workflows in Node.js

23 lines (18 loc) 361 B
'use strict' class Sleeping { init (stateConfig, options, callback) { callback(null) } enter (tymly, data, callback) { const ctx = tymly.ctx console.log(' * Sweet dreams ' + ctx.petName + '!') callback(null) } leave (tymly, data, callback) { callback(null) } } module.exports = { autoNudge: false, stateClass: Sleeping }