Skip to content

Commit

Permalink
#835: Fixed Camel tracer to highlight the node when clicked.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Dec 12, 2013
1 parent 372cecf commit e3c94c2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/trace.ts
Expand Up @@ -134,16 +134,25 @@ module Camel {
var cid = item["cid"];
var rid = item["rid"];
var type = item["type"];
var elementId = item["elementId"];

// if its from then match on rid
if ("from" === type) {
return toNode === rid;
}

// okay favor using element id as the cids can become
// undefined or mangled with mbean object names, causing this to not work
// where as elementId when present works fine
if (elementId) {
// we should match elementId if defined
return toNode === elementId;
}
// then fallback to cid
if (cid) {
// we should match cid if defined
return toNode === cid;
} else {
// and last rid
return toNode === rid;
}
}
Expand Down

0 comments on commit e3c94c2

Please sign in to comment.