@chix/flow
Version:
46 lines (44 loc) • 778 B
YAML
title: Pass Function
description: Function should survive
type: flow
nodes:
-
id: '1'
ns: 'test'
name: 'send'
-
id: '2'
ns: 'test'
name: 'receive'
links:
-
source:
id: '1'
port: out
target:
id: '2'
port: in
nodeDefinitions:
test:
func:
ns: test
name: send
fn: 'output = { out: $.create({send: function() { return "survived"; }}) }; '
ports:
input:
in:
type: 'string'
output:
out:
type: 'function'
receive:
ns: test
name: receive
fn: 'output.out = $.create($.in.send()); '
ports:
input:
in:
type: 'function'
output:
out:
type: 'string'