KB Article #182487

not possible to trigger a metadata based on the name of an Application Pickup type Trigger MBC

Problem

-- not able to trigger the metadata profile using the name of the Application Pickup (type Trigger MBC)

Resolution

* it is a product limitation, but there is alternative :

- go to $B2BI_SHARED_LOCAL/config/b2bx/server.

- create a file named metadata_attributes.cfg.

- create one or more custom attributes.

For example:
Message Attribute: CustomAttribute1=string
Message Attribute: CustomAttribute2=string

Note that, in this example, the prefix Message Attribute: is used to help you visually
locate the attributes in the alphabetical display lists of the UI

-- override the attribute in your custom trigger MBC

Example :

Code to be added in the trigger (just after MBC_HIERCHMSGENV.CreateMessage call) :

MBC_HIERCHMSGENV.SetAttribute $NewSessionId
MessageId $NewMessageId
Name "TestAttribute"
Value "TEST";

metadata attribute file to be created :

[axway@b2b-server server]$ pwd
/opt/axway/shared/b2bi/local/config/b2bx/server
[axway@b2b-server server]$ more metadata_attributes.cfg
Message Attribute: TestAttribute=string

-- create a Metadata Profile matching :
Message Attribute: TestAttribute equals TEST