Here is an example of how to perform model filtering when loading a BPMN diagram:
bpmnVisualization.load(diagram, { modelFilter: { pools: [ { // id of the Participant related to the Pool to display id:'id1' }, { // Name of the Participant, or name of the Process referenced by the Participant // when the Participant doesn't have a name. // This is how `bpmn-visualization` builds the name into its internal model. name:'name2' }, { id:'id3', // in this case, we only use the id, and ignore the name name:'name3' } ]}, });
Model filtering configuration.
Here is an example of how to perform model filtering when loading a BPMN diagram: