Hi @jugoslaviaa ,
There are a few ways you could deal with but, I would use an Aggregator (to aggregate all three features into a single feature), then set the text_line_data value as:
Humus: @Value(attribute1) m3
Volume 1 : @Value(attribute2) m3
Volume 2: @Value(attribute3) m3
This works because you are aggregating three streams and all three have separate attribute values so you aren't overwriting conflicting attribute values when using the Merge Incoming Attributes Accumulation Mode in the Aggregator.
A couple of things to keep in mind
- When you are setting attribute values, when the @value(<attributename>) is red, it means that attribute is not present on features connected to that stream. Another queue is the attribute name should show up under the FME Feature Attributes Drop down in the text editor.
- Every feature sent to the Text File Writer will write the value of the text_line_data attribute to the file (this is why it's written three times in your output) - assuming each AttributeManager contains the value you have shown in the screenshot .
Have a look at the attached example as it should help :)
There are a number of other ways you could accomplish this like using a Sorter and only sending individual lines to the text file writer (i.e. Humus: @Value(attribute1) m3) from each stream but personally I like using the Aggregator approach when I values from different streams don't have the same attribute name.