0.6.0
⚡ This new version improves the plugins
and BpmnElementsSearcher
. ⚡
List of issues: milestone 0.6.0
Highlights
Minimal version of bpmn-visualization
You must now use bpmn-visualization
0.42.0 or higher with bv-experimental-add-ons
. The previous version required bpmn-visualization
0.40.0 or higher.
ℹ️ For more details, see #155.
Plugin are now configurable
The plugins can now be configured by passing options at BpmnVisualization
initialization.
Previously, the plugins must be configured by calling a method. This is now easier and consistent with the rest of the library.
New ElementsPlugin
plugin
This new version introduces the ElementsPlugin
, which exposes the bpmn-visualization
API methods that retrieve elements from the model.
This is the first step of an initiative that will provide all methods of BpmnElementsRegistry
via plugins.
ℹ️ For more details, see #77
New CasePathResolver
This new class is dedicated to path resolution of a single instance/case of a process, while the existing PathResolver
is for general resolution.
Given a set of elements considered as completed, it is currently able to compute the edges between the provided shapes and the shapes around the provided edges.
It is also able to consider completed and pending elements both in the input parameter and in the inferred path.
This is the first step towards the implementation of more intelligent computing in the future.
ℹ️ For more details, see #142
More options for BpmnElementsSearcher
BpmnElementsSearcher
allows you to retrieve elements by providing their name.
Previously, it provided only one method, which returned the identifier of the element concerned. In many cases, the need is to retrieve the complete model object, not just its identifier. An additional call to the API was then necessary to obtain the complete object.
BpmnElementsSearcher
now provides a new method that retrieves the complete element from the model. In addition, it allows you to choose how deduplication is performed if 2 or more elements match the name provided.
What's Changed
🎉 New Features
- feat: enable diagram navigation in the "Overlays" demo by @tbouffard in #135
- feat: introduce
ElementsPlugin
by @tbouffard in #139 - feat(BpmnElementsSearcher): provide options to deduplicate elements by @tbouffard in #131
- feat(BpmnElementsSearcher): add a new method to get all elements by name by @tbouffard in #134
- feat: introduce
CasePathResolver
by @tbouffard in #142 - feat: add a way to configure plugins by @tbouffard in #159
📝 Documentation
- docs: present the library as less "experimental" than before by @tbouffard in #160
⚙️ Other Changes
- style: apply
unicorn/recommended
rules by @tbouffard in #127 - chore(eslint): lint imports with
eslint-plugin-import
by @tbouffard in #140 - refactor(plugin): remove wrong comment by @tbouffard in #141
- refactor(path): let
bpmn-visualization
filters duplicates by @tbouffard in #155
Full Changelog: v0.5.0...v0.6.0