Author |
Message
|
vjm1234 |
Posted: Tue Aug 15, 2017 8:49 pm Post subject: Custom value pair in IIB 10 Monitorting events |
|
|
Newbie
Joined: 13 Jun 2017 Posts: 8
|
IIB 10 version - wanted to know if there is a way to add custom values into monitoring events in addition to what we can fetch from message data (payload and RFH header). for example, like emitting source and target values which not part of any message payload..
<p:applicationDataQuery>
<p:simpleContent p:dataType="string" p:name="Source">
<p:valueQuery p:queryText="ABC"/>
</p:simpleContent>
<p:simpleContent p:dataType="string" p:name="Target">
<p:valueQuery p:queryText="XYZ"/>
</p:simpleContent>
</p:applicationDataQuery> |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 16, 2017 4:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
The content fields are just XPath so in theory you can include anything. Calculated values might get a bit sticky.
To be clear I've never tried this nor encountered a use case where I needed to. Perhaps you could go into a bit more detail about your requirement?
There may be an easier way to achieve what you need than the one you've chosen. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vjm1234 |
Posted: Wed Aug 16, 2017 1:00 pm Post subject: |
|
|
Newbie
Joined: 13 Jun 2017 Posts: 8
|
Hi Vitor, thanks for reply..
our requirement is to emit events for each transactions like IN and OUT and we use them for auditing and Dashboard purpose. many integrations are old and already deployed, we are trying to add custom fields and values that needed directly into monitoring profile instead of making code changes.
Source flow sends out IN event with UniqueID
Targer Flow sends out OUT event with UniqeuID ( from source flow) and also add Target details.. this is needed when we have multiple targets for same source message. |
|
Back to top |
|
 |
timber |
Posted: Wed Aug 16, 2017 1:51 pm Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
You can add custom fields. Just use standard XPath facilities to return a fixed value from the XPath expression.
Alternatively, write a simple message flow that subscribes to the events topic and adds any missing mandatory fields. |
|
Back to top |
|
 |
abhi_thri |
Posted: Thu Aug 17, 2017 12:45 am Post subject: |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
Hi...are you planning to do custom processing of the monitoring event or do you intend to use IBM's Record/Reply database? We had to use the Record database and thus our options were limited, there are some columns (KEY_FLD*) but they are not linked yet to the monitoring message. IBM had plans to make it available in future so that such fields can be used to store some useful info but don't think they managed to do it yet.
Thus we ended up using one of the existing columns (Parent transcation id) to store the key fields using a separator. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 17, 2017 6:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
timber wrote: |
You can add custom fields. Just use standard XPath facilities to return a fixed value from the XPath expression. |
That's what I was trying to articulate. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|