@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
13 lines (10 loc) • 318 B
JavaScript
class AvailableResources {
init (resourceConfig, env) {
this.statebox = env.bootedServices.statebox
} // init
run (event, context) {
const resources = this.statebox.listStateResources()
context.sendTaskSuccess(resources)
} // run
} // class AvailableResources
module.exports = AvailableResources