Creatingf a BW loop back process to handle an MBusiness Document message type with grouping factor.

Creatingf a BW loop back process to handle an MBusiness Document message type with grouping factor.

book

Article ID: KB0085935

calendar_today

Updated On:

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

Description

Description:


Description:
===========
If you want to create a BW loopback process (FA Publisher -> BW Adapter Subscriber -> BW Publish to Adapter -> FA Subscriber) to handle a Business Document message type with a grouping factor, in which an FA Publisher publishes a MBusiness document (with grouping factor N), and you subscribe to the MBusiness document message in a BW subscriber and want to publish the MBusiness document message (with grouping factor N) using a BW publisher to FA subscriber, then you can design a BW process and configure it by following the steps mentioned in the Resolution of this KB.

Issue/Introduction

Creatingf a BW loop back process to handle an MBusiness Document message type with grouping factor.

Resolution

Resolution:
===========
Create BW loopback process to handle Business Document message type with grouping factor using below steps:

BW Adapter Subscriber Configuration Details:
------------------------------------------------------

1). Create a BW to process (BW LoopBack Process) and add the activity Adapter Subscriber.

2). Click on the"Adapter Subscriber" activity in the configuration tab and select the respective FA publication service (from transferReader).

3). Select the Custom AESchema checkbox and browse to the AE class MbusinessDocument. (AESchemas->ae->baseDocument->classes->MbusinessDocument).
For more details, refer to the attached document  (Fig 1: BW Adapter Subscriber Configuration Details).

4). In Misc tab, set ‘ProcessStarterOutput/trackingInfo/id’ to ensure sequential processing of messages to avoid incomplete output file generation.


BW Publish to Adapter configuration Details:
----------------------------------------------------

1). Add activity "Publish To Adapter" to process.

2). Click the "Publish To Adatper" activity. In the configuration tab, select the respective FA subscriber.

3). Check the custom schemas checkbox and reference the MBusiness document using the browse button. This will have the MBusiness document in the body inside the Input tab.

4). Expand the MBusiness document inside the body. Expand the Datasection in the business document.

5). Select Data in the Datasection. Click the "Edit Statement" (having exclamation mark "!") button. This will open the Edit statement dialog box.

6). Select "Element" from the statement type drop down list.

7). Click on the tab "Type", and check Type Substitution.

8). Browse the wire schemas present in the AESchemas/ae/FileAdapter/wire/<schemas instance>. This will coerce the data (any type) to schemas.

9). Similarly coerce the data from the process data (present under $adapter subscriber>body>MBusinessDocument>data on left side in input tab) .For more details, refer to the attached document (Fig 2: BW Adapter Publisher Configuration Details)

10). Map the values to the attributes in the MBusiness document.

If you are looking for configuring EMS in FT With FA, then refer to SOL1-BOD9BN: How to publish a MBusiness document from a BW publisher to a TIBCO ActiveMatrix (R) Adapter for Files (Unix/Win) (FA) subscriber.

If you are configuring EMS in FT with FA, refer to SOL1-7Y8XRY: How to publish MBusinessDocument from TIBCO Adapter for Files (FA) publisher to TIBCO BusinessWorks (BW) subscriber.

Attachments:
============
BW loopback process.docx (BW loopback process Configuration Details Document)
BW loopback process.zip (sample project)

Attachments

Creatingf a BW loop back process to handle an MBusiness Document message type with grouping factor. get_app
Creatingf a BW loop back process to handle an MBusiness Document message type with grouping factor. get_app