The element allows you to join two data flows into a single data flow, i.e. to join messages from two input ports into concatenated messages and send them to the output. The concatenation approach is determined by the Multiplexing rule parameter.
There are the following multiplexing rules:
This rule means that the multiplexer gets one message from the first input port and one message from the the second input port, joins them into a single message, and transfers it to the output. This procedure is repeated while there are available messages in both input slots.
See an example workflow below:
<center> <img src="/wiki/download/attachments/16126399/multiplexer_element_1to1.png"/> </center> |
As you can see:
Also see the Find Substrings at Sequences, Search for TFBS examples with Multiplexer element.
Parameter | Description | Default value |
---|---|---|
Multiplexing rule | How to multiplex the input data flows. Available values are:
| 1 to 1 |
If empty input | Specifies how to multiplex the data if one of input ports produces no data. It can be used for 1 to 1 multiplexing rule. Available values are:
| Fill by empty values |
Parameters in Workflow File
Type: multiplexer
Parameter | Parameter in the GUI | Type |
---|---|---|
multiplexing-rule | Multiplexing rule | string |
empty-input-action | If empty input | string |
Input/Output Ports
The Multiplexer has ports but has not slots, because its use the whole data flow.
The element has 2 input port:
Name in GUI: First input data flow
Name in Workflow File: input-data-1
Name in GUI:Second input data flow
Name in Workflow File: input-data-2
The element has 1 output port:
Name in GUI: Multiplexed output data flow
Name in Workflow File: output-data