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