![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bpmn-visualization
Advanced tools
A TypeScript library for visualizing process execution data on BPMN diagrams
bpmn-visualization
is a TypeScript library for visualizing process execution data on BPMN diagrams with:
Please check the ⏩ live environment.
You will find there basic usage as well as detailed examples showing possible rendering customizations.
bpmn-visualization
is actively developed and maintained.
Before the release of version 1.0.0
, there may be some breaking changes. We avoid these as much as possible, and carefully document them in the release notes.
As far as possible, we maintain compatibility for some minor versions.
Already available features:
Planned features:
![]() | |||
---|---|---|---|
✔️ | ✔️ | ✔️ | ✔️ |
Notes:
bpmn-visualization@0.26.0
:
The library is available from NPM.
We support various module formats such as:
dist/bpmn-visualization.js
dist/bpmn-visualization.esm.js
dist/bpmn-visualization.cjs.js
Install bpmn-visualization
in the project:
npm i bpmn-visualization
Then use this snippet to load your BPMN diagram in a page:
import { BpmnVisualization } from 'bpmn-visualization';
let bpmnContent; // your BPMN 2.0 XML content
// initialize `bpmn-visualization` and load the BPMN diagram
// 'bpmn-container' is the id of the HTMLElement that renders the BPMN Diagram
const bpmnVisualization = new BpmnVisualization({ container: 'bpmn-container' });
bpmnVisualization.load(bpmnContent);
You can set the BPMN content using one of the following ways:
bpmn-visualization
provides type definitions, so the integration should work out of the box in TypeScript projects.
Depending on the build system used by the TypeScript project, it may get the following type errors:
In this case, declare the typed-mxgraph
types in the tsconfig.json
as in the following (see the typeRoots documentation for more explanations) 👇
{
"compilerOptions": {
"typeRoots": [
"node_modules/@types",
"node_modules/@typed-mxgraph"
]
}
}
NOTE
This is also mandatory for users who want to extend the mxGraph
integration.
Alternatively, you can set skipLibCheck
to true
in the tsconfig.json
file, but this limits the definition checks.
ℹ️ For more details, see the TypeScript projects in the bpmn-visualization-examples repository.
In the HTML page:
bpmn-visualization
(replace {version}
by the recent version)<script src="https://cdn.jsdelivr.net/npm/bpmn-visualization@{version}/dist/bpmn-visualization.min.js"></script>
...
<div id="bpmn-container"></div>
...
<script>
let bpmnContent; // your BPMN 2.0 XML content
// initialize `bpmn-visualization` and load the BPMN diagram
// 'bpmn-container' is the id of the HTMLElement that renders the BPMN Diagram
const bpmnVisualization = new bpmnvisu.BpmnVisualization({ container: 'bpmn-container'});
bpmnVisualization.load(bpmnContent);
</script>
The User documentation (with the feature list & the public API) is available in the documentation site.
💡 Want to know more about bpmn-visualization
usage and extensibility? Have a look at the
⏩ live examples site.
For more technical details and how-to, go to the bpmn-visualization-examples repository.
To contribute to bpmn-visualization
, fork and clone this repository locally and commit your code on a separate branch.
Please write tests for your code before opening a pull-request:
npm run test # run all unit & e2e tests
You can find more detail in our Contributing guide. Participation in this open source project is subject to a Code of Conduct.
✨ A BIG thanks to all our contributors 🙂
bpmn-visualization
is released under the Apache 2.0 license.
Copyright © 2020-present, Bonitasoft S.A.
Some BPMN icons used by bpmn-visualization
are derived from existing projects. See the BPMN Support documentation
for more details:
statically.io (demo and examples live environments)
surge.sh (demo and documentation preview environments)
FAQs
A TypeScript library for visualizing process execution data on BPMN diagrams
The npm package bpmn-visualization receives a total of 968 weekly downloads. As such, bpmn-visualization popularity was classified as not popular.
We found that bpmn-visualization demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.