[CAM-7630] Cache diagram XML when switching views Created: 13/Apr/17  Updated: 29/Aug/17  Resolved: 29/Aug/17

Status: Closed
Project: camunda BPM
Component/s: cockpit
Affects Version/s: None
Fix Version/s: 7.8.0, 7.7.1, 7.6.6, 7.8.0-alpha2

Type: Task Priority: L3 - Default
Reporter: Sebastian Stamm Assignee: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes

Issue Links:
is related to CAM-7938 Immutable diagram xml is not cached Closed
is related to CAM-8169 Reuse BpmnViewer while switching views Closed


Following scenario:

  • Goto Cockpit Process Definition View
  • Diagram is loaded, parsed and displayed
  • Select an instance
  • Diagram is loaded, parsed and displayed again

This unnecessary loading occurs when switching between definition and instance view as well as when switching between runtime and history view. We should cache the loaded diagram so that we do not need to load it again.

Ideally, we can also cache the bpmn-js viewer instance of the parsed diagram to speed it up even more. We might get a problem with view-specific overlays then, though.

Comment by Sebastian Stamm [ 15/Jun/17 ]

Diagram XML request response can now be cached by the browser.

Generated at Wed Aug 21 13:42:17 CEST 2019 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.