Configuring record based output > Example: creating a StreamOUT configuration

Example: creating a StreamOUT configuration
In this example, you have the Event configuration in Example 1, and want the StreamServer to generate output according to Example 2.
Example 1
Click to enlarge
 
Example 2
 
                                    C_begin
Vivaldi      Quattro stagioni     23
Wagner       Gotterdammung        25
                                    C_end
                                    J&B_begin
Armstrong    Wonderful world      26
Gillespie    Zabadiddelidoo       24
                                    J&B_end
                                    R&P_begin
Sting        Save the jungle      23
Procol Harum Procol’s ninth       25
                                    R&P_end
 
Edit the record type
All fields in the output should be in fixed positions, and each record should end with CR+LF.
1
Select Tools > Options. The StreamOUT options dialog box opens.
2
Select Fixed field positions, New line at end of record, and Carriage return and line feed (CR + LF) and click OK.
Add the blocks and records
1
Drag the Classic block from the Event view, and drop it on the Message node in the Process view. The Classic block, including a block record, is added below the Message node.
2
Do the same with the Jazz and blues and Rock and pop blocks.
Click to enlarge
Add and configure the fields
The steps below describe how to add fields to the Classic block record. The same steps also apply to the two other blocks.
Add the fields
1
Drag the classic_artist field from the Classic block in the Event view, and drop it on the Classic record in the Process view.
2
Drag the classic_artist_album field from the Classic block in the Event view, and drop it on the classic_artist field in the Process view.
3
Drag the classic_artist_price field from the Classic block in the Event view, and drop it on the classic_artist_album field in the Process view.
Configure the fields
1
Right-click the classic_artist field and select Edit Start Position. The corresponding field in the Pos column in the Process view is write enabled.
2
Enter 1 as start position.
3
Right-click the classic_artist field and select Edit Width. The corresponding field in the Width column in the Process view is write enabled.
4
Enter 25 as width.
5
Repeat steps 1 - 4 for the fields classic_artist_album and classic_artist_price, and set the start position to 31 and 61 respectively.
Click to enlarge
Add and configure free blocks
Each block calls two free blocks – one before first instance block, and one after last instance block. The steps below describe how to add the free blocks to the Classic block. The same steps also apply to the two other blocks.
Add the free blocks
1
Right-click the Classic block and select Insert Before First Instance Block. A Before_Classic block is added to the Classic block.
2
Right-click the Classic block and select Insert After Last Instance Block. An After_Classic block is added to the Classic block.
Configure the free blocks
1
Right-click the Before_Classic block and select Insert Record. A new record is added to the Before_Classic block.
2
Right-click the new record and select Insert Static Text. A new static text object is added to the record.
3
4
In the Value field, enter C_begin.
5
Right-click the text object and select Edit Start Position. The corresponding field in the Pos column in the Process view is write enabled.
6
Enter 62 as start position.
7
Right-click the text object and select Edit Width. The corresponding field in the Width column in the Process view is write enabled.
8
Enter 20 as width.
9
Repeat steps 1 - 8 for the After_Classic block and set the value of the static text to C_end.
OpenText StreamServe 5.6 Updated: 2013-03-01