UNPKG

564 Btext/coffeescriptView Raw
1# To work in msgflo-nodejs source tree
2try
3 msgflo = require 'msgflo-nodejs'
4catch e
5 msgflo = require '..'
6
7RepeatParticipant = (client, role) ->
8
9 definition =
10 component: 'Repeat'
11 icon: 'file-word-o'
12 label: 'Repeats in data without changes'
13 inports: [
14 id: 'in'
15 type: 'any'
16 ]
17 outports: [
18 id: 'out'
19 type: 'any'
20 ]
21 process = (inport, indata, callback) ->
22 return callback 'out', null, indata
23 return new msgflo.participant.Participant client, definition, process, role
24
25module.exports = RepeatParticipant