1 |
|
2 | try
|
3 | msgflo = require 'msgflo-nodejs'
|
4 | catch e
|
5 | msgflo = require '..'
|
6 |
|
7 | RepeatParticipant = (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 |
|
25 | module.exports = RepeatParticipant
|