if (runningActivityIds != null && runningActivityIds.length > 0) {
graph.clearSelection();
try {
for (int i = 0; i < runningActivityIds.length; i++) {
try {
GraphManager wm = graph.getGraphManager();
Object go = wm.getGraphActivity(runningActivityIds[i]);
if (go != null) {
graph.addSelectionCell(go);
}
} catch (Exception ex) {
LogFactory.getLog(Viewer.class.getName()).error(ex);