Skip to main content

django bpmn modeler widget(integrated with properties panel)

Project description

django-bpmn-widget

django bpmn modeler widget(integrated with properties panel)

Usage

  1. Install django-bpmn-widget
pip install django-bpmn-widget
  1. Add bpmn_widget to settings.py INSTALLED_APPS, like this:
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'bpmn_widget'
]
  1. Display in Form
from django import forms

from yourapp.models import MyModel
from bpmn_widget.widgets import BPMNWidget # import widget


class MyModelForm(forms.ModelForm):
    class Meta:
        model = MyModel
        widgets = {
            'content': BPMNWidget() # change it to the field you want to display
        }
        fields = '__all__'
  1. Display in Django-Admin
from django.contrib import admin

from yourapp.models import MyModel
from yourapp.forms import MyModelForm


class MyModelAdmin(admin.ModelAdmin):
    form = MyModelForm

admin.site.register(MyModel, MyModelAdmin)

Note

The following is the js library for widget integration

  • bpmn-js@10.2.1
  • bpmn-js-properties-panel@1.10.0
  • camunda-bpmn-moddle@7.0.1

If you want to update their version or extend other plug-ins, please compile them yourself

Screenshot

img.png

Reference

bpmn-js
django-bpmn

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-bpmn-widget-1.0.1.tar.gz (977.5 kB view hashes)

Uploaded Source

Built Distribution

django_bpmn_widget-1.0.1-py3-none-any.whl (988.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page