Hi,
A frustrating problem with has puzzled me for days. Here is what im trying to do :
In my scenario i’ve got one inbound port(FILE based location) and three outbound ports(also FILE). All three outbound ports subscribes to messages processed by the inbound port so every time a messages comes in three copies comes out.
What I wan’t to track is how long it takes for a message to complete (Inbound port start time -> outbound port end time) for each of the three branches using BAM.
So what have i done to solve this problem. First of all i’ve created an Activity containing a few properties such as : InboundPortStartTime, OutboundPortEndTime, MessageID etc. In my trackingprofile i’ve mapped InboundPortStartTime to my indbound port and OutboundPortEndTime to my three outbound ports.
When i dump a message to my inbound port 4 records are created in the dboBAM_ACTIVITYNAME_completed but they are all incomplete. The first record has InboundPortStartTime filled with a correct timestamp but with no timestamp in the OutboundPortEndTime. this is of course due to the fact that i’ve not not mapped OutboundPortEndTime to my Inbound port because it does make sense regarding what i want to do. The three remaing records all got OutboundPortEndTime filled but no timestamp is present in the InboundPortStartTime field. This is because the three records is created when the message is passed from the inbound port and therefore has no knowledge of when the message was received.
I’ve tried to solve the problem by using both Relation and Continuation but with no luck. I’m stuck!