flownote
Version:
FlowNote lets developers create, organize, and reason about event-oriented applications with a simple flow-based language.
13 lines (10 loc) • 440 B
JavaScript
import Channel from '../channel'
class NamedChannel extends Channel {
constructor (application, id, name, to, accepts = [], retry, retryDelay, actions = []) {
const gotoNode = application.requireAction('gotoNodeFromNamedChannel', function gotoNode () {
this.dispatch('StandardNode')
})
super(application, id, name, to, accepts, retry, retryDelay, actions.concat([ gotoNode ]))
}
}
export { NamedChannel as default }