This service is a controllable gate for dataflow.
gate: Boolean. Non-trigger inport, the state of gate.
in: Any.
out: Any. Output the value of in if gate is true.
For this example, the value of gate was fixed to false, no data output forever.
This service is a splitter for dataflow, then outputs true when in is true, otherwise else outputs true.
Note that: Only one outport outputs true each time.
in: Boolean.
then: Boolean. Output true only when in is true
else: Boolean. Output true only when in is false
For this example, if in is true, the upper branch will be satisfied and eventually output "path_up", otherwise the lower branch will be selected and eventually output "path_down".
Output the value of content to out only when trigger received message.
content: Any. Non-trigger inport
trigger: Any. The value will be discard.
out: Any.
This service combines all inport to a JSON object and output it.
You can add/delete inport, and the name of inport is changable.
out: JSON Object. keys from the name of inports and value from each inport.
For this example, the value of out is {"name":"abc", "phone":12345, "addr":"intel corp"}