What is the impact of the SendLotEndWithDataMsg property available in the TIBCO Adapter for Files (FA) adapter tra file?

book

Article ID: KB0089307

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Description:
A property 'sendLotEndWithDataMsg' applies only when a TIBCO Adapter for Files (FA) publisher is configured to publish "Business document" format under the 'Advanced' tab in TIBCO Designer. A property 'SendLotEndWithDataMsg' is useful to control the publication of the lotend flag with either actual data message or a separate message.

Resolution

Mbusinessdocument format contains a LotEnd flag (true/false) which is used to control the closing of the file at  the subscriber end. If the 'sendLotEndWithDataMsg' property is set to ON, then LotEnd=true is sent with last data message of the batch. If a 'sendLotEndWithDataMsg' property set to OFF, then LotEnd=true is sent as a separate dummy message with no data. A property sendLotEndWithDataMsg applies only when the grouping factor is more than 1.

For example, there are 7 records in the input file and the grouping factor is configured as 5. When a 'sendLotEndWithDataMsg' property is set to OFF, 3 business doc messages will be published:

BD1:
Contains message 1-5
LotEnd=false

BD2:
Contains message 6-7
LotEnd=false

BD3:
Contains no message
LotEnd=true

When a 'sendLotEndWithDataMsg' property set to ON, only 2 business doc messages will be published:

BD1:
Contains message 1-5
LotEnd=false

BD2:
Contains message 6-7
LotEnd=true

For 7 records with a grouping factor 1, 8 doc messages will be published with separate last dummy LotEnd=true messages.

Issue/Introduction

What is the impact of the SendLotEndWithDataMsg property available in the TIBCO Adapter for Files (FA) adapter tra file?

Additional Information

NA