Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Use an output multiplier to break out a record into multiple output records
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Look up
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
This means that the lookup will match records in the reference data (SOURCE_PACKAGE_CHANNELS
) where PACKAGE
= Package
from the input pipe in
We must do this, rather than using the value of Package
from the output because we are using the lookup to drive an output multiplier – and output multipliers are calculated before the output is generated
- Open the configuration form for the stream
Latest Package All Channels
by double clicking it - In the field Output Multiplier, enter the value:
chan.CHANNEL
This means that for each output record processed, PhixFlow will look up the list of channels for the package from the reference stream; it will then work through the list returned, handling each element from the list in turn and generating an output record in the stream for each one
- Add an attribute to the stream with Name
Channel
- Set the Expression of this attribute to
_outputMultiplier
This will print the value of the current element of the output multiplier list to this field
...
On older models in PhixFlow you may see the internal variable _type. This is the old name for _outputMultiplier. Either can be used, and anywhere you see _type you can update it to _outputMultiplier for clarity.