Skip to content

dwslab/bpmn-image-annotator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BPMN Image Annotator

BPMN Image Annotator Pizza Example

Annotation tool based on bpmn-js to annotate hand-drawn BPMN images with their ground-truth BPMN models. This tool was used to annotate the hdBPMN dataset.

Workflow:

  1. Upload image
  2. Model BPMN process over the image
  3. Download BPMN XML

The XML will have an additional backgroundSize to track the width the image was rescaled to during modeling. This way, the BPMN shapes and edges can be linked back to the position within the image.

You can also use the hosted bpmn-image-annotator instead of running the tool yourself.

Installation

npm install
npm run dev

bpmn-js Changes

bpmn-js enforces several correctness rules. To allow the annotation of images that contain modeling errors, most of these rules have been disabled.

Modeling:

  • allow resizing elements
  • allow elements outside of lane/pool (this can be achieved by shrinking lane after the element has been modeled)

Sequence Flow:

  • (Message/Timer) End Event: allow outgoing sequence flow
  • (Message/Timer) Start Event: allow incoming sequence flow
  • Event-based Gateway: allow outgoing sequence flow to task

Message Flow:

  • Event (all types): allow incoming+outgoing message flow
  • Gateway (all types): allow incoming+outgoing message flow
  • CallActivity: allow incoming/outgoing message flow

DataInputAssociation/DataOutputAssociation

  • allow DataInputAssociation/DataOutputAssociation to catch/throwEvent
  • allow DataInputAssociation/DataOutputAssociation to Gateway

TODO

License

Apache 2.0

Also see the bpmn-js license.