Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows | - |
Not Applicable | - |
Resolution:
Description:
=========
Normally, a BW publisher publishes messages in the AE/RV format. If there is a requirement to publish messages in the MBusiness format, it can be achieved using custom schemas in the BW publisher configuration tab. The MBusiness document data section is published in any datatype, so for a TIBCO ActiveMatrix (R) Adapter for Files (Unix/Win) (FA) subscriber to subscribe to the message, there must be a type substitution on the BW publisher side.
Environment:
===========
All
Resolution:
===========
To publish a MBusiness document from a BW publisher to a FA subscriber, the following steps should be take.
1). Create a FA subscriber with write schemas.
2). Create a BW process having the activity "Publish To Adapter".
3). Click the "Publish To Adatper" activity. In the configuration tab select the respective FA subscriber.
4). 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.
5). Expand the MBusiness document inside the body, expand the Datasection in the business document.
6). Select Data in the Datasection. Click the "Edit Statement" (exclamation mark "!") button. This will open the Edit statement dialog box.
7). Select "Element" from the statement type drop down list.
8). Click on the tab "Type" and check Type Substitution.
9). Browse the wire schemas present in the AESchemas/ae/FileAdapter/wire/<schemas instance>. This will coerce the data (any type) to schemas.
10). Map the values to the attributes in the schemas.
11). Map the values to attributes in the MBusiness document. Apply the logic to set the LotEnd value to publish true for the last message and false for every message.
12). Make sure you provide the values of all attributes (like LotEnd, LotId, LotItem etc..) in the MBusiness document.
If you have imported AE schemas from another project that does not have wire schemas, and write schemas is created using imported schemas in FA subscriber, there will be no option to select wire schemas mentioned in step 9 above. Instead, select that schema which is referred to create Write schmeas in the FA subscriber. In short, a BW publisher should publish messages using the same schemas which is used to create write schemas in FA subscriber.
Attached is a sample project named "MDoc_BW2FA.zip". This has a BW publisher in MBusiness document and a FA subscriber. Also provided is a screenshot a "BWPubMappingSteps.jpg" showing the steps to select non-wire schemas in the datasection of the MBusiness document on the BW Publisher side.
Note: Make sure to set values for all MBusiness document attributes (ApplicationInstanceId, LotEnd, LotId... etc).