A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://process-analytics.github.io/bpmn-visualization-js/ below:

bpmn-visualization

1.2. Source Code

bpmn-visualization is an open source library.
You can find the source code on GitHub.

We will be more than happy to exchange ideas and more with you on the subject.
Because who knows, if you feel like contributing (feature, bug, doc, etc), you are very welcome to do so! 🙂

1.3. Usage 1.3.1. Bundles

bpmn-visualization can be directly used in HTML pages or integrated in Javascript and TypeScript applications. It is distributed as a npm package in various bundle formats.

1.3.2. API

The API documentation is provided directly in the package thanks to the TypeScript declaration files that can be used in IDE for code assist.

1.4. Glossary

Here are a list of terms and concepts we are using in the bpmn-visualization documentation, issues, examples…​

Table 1. Glossary Term or concept Description

BPMN rendering

The part of the rendering that concerns purely the BPMN model according to the specification

Customization

The library user changes the rendering / behavior using their own code by extending the library

Configuration

The library user changes the rendering / behavior using existing features

Custom behavior

Any behavior that causes changes in the BPMN rendering (adding popup, changing elements color or thickness…​)

Diagram navigation

Set of user interactions, that permits pan and zoom, to achieve desired visibility on diagram elements or diagram as a whole

Options

Configuration elements used at the library initialization and by the APIs at runtime

Library integration

Something about how an app can integrate the library

Process data

Execution data + derived data

Execution data

Data that is generated during the natural process instance flow: state, logs, …​

Derived data

Data that by any means derives from the execution data and/or other contextual data

1.5. BPMN Diagrams

BPMN diagrams are at the foundation of the bpmn-visualization capabilities.

Go to Supported BPMN Elements section to better now what is the current BPMN support.

1.5.1. BPMN rendering

The first goal of bpmn-visualization is to render BPMN diagrams but this is up to the integration (i.e. the application that uses it) to provide the BPMN diagram content.
For instance, it can be retrieved from a local file, by pulling a REST API, made available after a push from websockets or SSE, …​

Once the integration gets the BPMN diagram input source, it just has to pass it to bpmn-visualization which is then in charge of rendering the diagram.

1.5.1.1. Default BPMN Theme

By default, the rendering uses the following settings:

The default colors are deliberately neutral. They make it easy to highlight process data with specific colors.

If the defaults don’t fit your needs, please read how to customize the BPMN Theme.

Default BPMN Theme

1.5.1.2. Customizing the BPMN Theme

It is possible to change the default theme by extending bpmn-visualization or by using CSS in the page displaying the diagram.

The current extension mechanism is experimental and subject to change.

For more details, see the Custom BPMN Theme examples.

Custom BPMN Theme

1.5.2. Diagram Navigation

In addition to BPMN rendering, bpmn-visualization provides several ways to explore and navigate through the BPMN diagrams. This is made available at load time or at runtime, through user interactions or API calls.

The navigation features are:

Navigation is particularly useful for large diagrams. Fitting the view to the screen provides a good overview of a large diagram, but it can be hard to see details.
You can zoom to highlight specific parts, then pan to view different diagram portions.
After navigating around, you may want to reset the zoom level and go back to a full diagram overview.

1.6. Process data

bpmn-visualization gives you the opportunity to visualize the Process Data on top of the BPMN diagrams. The purpose of the library is to gain the visibility on what happens in your processes.

Process Data consists of two main data sets:

1.6.1. Process data examples

The example of Process Data for different tasks can be as follows.

user task:

service task:

1.7. Custom behavior

bpmn-visualization provides API to interact with the BPMN elements and their representation as DOM Element.

Fore more examples about Custom Behavior, see the examples live environment

1.7.1. BPMN semantic and DOM Element

A BPMN element contains BPMN semantic information that can be matched with Process data. The DOM Element let you manipulate the representation and allow enriching its behavior by adding event listeners for instance.

The following example demonstrates how to let users interact with a BPMN diagram when clicking on a task, passing the mouse over another task or a transition between two elements.
Here, it displays BPMN information only, but it could use this feature to display execution data related to the current BPMN element: execution time and details, pending user of an activity, current error at this stage of the process, and more.

Display popovers on over or click

1.7.2. Style

The style of BPMN elements can be modified at runtime, making it possible to mark, hide or modify the appearance of one or more specific elements.
This can be done by applying CSS classes or defining style properties using a dedicated API.

These features can be used to mark a task as being in error, warn that an activity has been running for some time and appears to be blocked, etc.
The following example shows how to see which path in a process is the currently running activity.

Path highlighting with the miwg-test-suite C.1.1 BPMN diagram

1.8. Overlays

bpmn-visualization provides API to add overlays on top of BPMN elements. This additional overlays layer permits you to show whatever data you want and enrich your diagrams.

1.8.1. Use case

There are various use cases concerning overlays. For example the aforementioned Process data can be easily displayed in rectangular shapes on top of the edges and tasks. Whether you would like to show a path frequency or probability for the next step, the overlays are here to help you achieve this.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4