Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SpiffWorkflow

Logo

Spiff Workflow is a workflow engine implemented in pure Python. It is based on the excellent work of the Workflow Patterns initiative. In 2020 and 2021, extensive support was added for BPMN / DMN processing.

Motivation

We created SpiffWorkflow to support the development of low-code business applications in Python. Using BPMN will allow non-developers to describe complex workflow processes in a visual diagram, coupled with a powerful python script engine that works seamlessly within the diagrams. SpiffWorkflow can parse these diagrams and execute them. The ability for businesses to create clear, coherent diagrams that drive an application has far reaching potential. While multiple tools exist for doing this in Java, we believe that wide adoption of the Python Language, and it's ease of use, create a winning strategy for building Low-Code applications.

Build status

SpiffWorkflow Documentation Issues Pull Requests

Code style

PEP8

Dependencies

We've worked to minimize external dependencies. We rely on lxml for parsing XML Documents, and that's it!

Features

  • BPMN - support for parsing BPMN diagrams, including the more complex components, like pools and lanes, multi-instance tasks, sub-workflows, timer events, signals, messages, boudary events and looping.
  • DMN - We have a baseline implementation of DMN that is well integrated with our Python Execution Engine.
  • Python Workflows - We've retained support for building workflows directly in code, or running workflows based on a internal json data structure.

A complete list of the latest features is available with our release notes for version 1.0.

Code Examples and Documentation

Detailed documentation is available on spiff.works. Also, checkout our example application, which we reference extensively from the Documentation.

Installation

pip install spiffworkflow

Tests

Standard environment:

pip install -e .[dev]
make tests
make tests-par
make tests-cov

Using uv:

uv sync --extra dev
make RUN='uv run' tests
make RUN='uv run' tests-par
make RUN='uv run' tests-cov

Support

You can find us on Discord at https://discord.gg/BYHcc7PpUC

Commercial support for SpiffWorkflow is available from Sartography

Contribute

Pull Requests are and always will be welcome!

Please check your formatting, assure that all tests are passing, and include any additional tests that can demonstrate the new code you created is working as expected. If applicable, please reference the issue number in your pull request.

Credits and Thanks

Samuel Abels (@knipknap) for creating SpiffWorkflow and maintaining it for over a decade.

Matthew Hampton (@matthewhampton) for his initial contributions around BPMN parsing and execution.

The University of Virginia for allowing us to take on the mammoth task of building a general-purpose workflow system for BPMN, and allowing us to contribute that back to the open source community. In particular, we would like to thank Ron Hutchins, for his trust and support. Without him our efforts would not be possible.

Bruce Silver, the author of BPMN Quick and Easy Using Method and Style, whose work we referenced extensively as we made implementation decisions and educated ourselves on the BPMN and DMN standards.

The BPMN.js library, without which we would not have the tools to effectively build out our models, embed an editor in our application, and pull this mad mess together.

Kelly McDonald (@w4kpm) who dove deeper into the core of SpiffWorkflow than anyone else, and was instrumental in helping us get some of these major enhancements working correctly.

Thanks also to the many contributions from our community. Large and small. From Ziad (@ziadsawalha) in the early days to Elizabeth (@essweine) more recently. It is good to be a part of this long lived and strong community.

License

GNU LESSER GENERAL PUBLIC LICENSE

Download files

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

Source Distribution

spiffworkflow-3.1.3a1785446489.tar.gz (153.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spiffworkflow-3.1.3a1785446489-py3-none-any.whl (275.4 kB view details)

Uploaded Python 3

File details

Details for the file spiffworkflow-3.1.3a1785446489.tar.gz.

File metadata

  • Download URL: spiffworkflow-3.1.3a1785446489.tar.gz
  • Upload date:
  • Size: 153.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for spiffworkflow-3.1.3a1785446489.tar.gz
Algorithm Hash digest
SHA256 50e763218d28e2c91664c6ebd8e47d258ccee719e6a8135e256c9577f3f2c593
MD5 c9e4138c279aabc759dd1418171c2b31
BLAKE2b-256 2afb0745268fbf42e78a6ec28eb6cedb6e768d265e493cbb29912e561793ee78

See more details on using hashes here.

File details

Details for the file spiffworkflow-3.1.3a1785446489-py3-none-any.whl.

File metadata

File hashes

Hashes for spiffworkflow-3.1.3a1785446489-py3-none-any.whl
Algorithm Hash digest
SHA256 6947ec5997e6577af2e6b25c1b39e4cceb8673c1a7308c8ff80229127500b338
MD5 58264c01df683e03b7466f651a2092c4
BLAKE2b-256 f134bfed9c3e81102f24979ec98dfa75712070d5e809e8d52757492c954b9748

See more details on using hashes here.

Release history Release notifications | RSS feed

3.2.0

2 files

This release

3.1.3a1785446489 This release

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

3 files

3.0.0

2 files

2.0.1

2 files

2.0.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.2

2 files

1.1.0

2 files

1.0.0

2 files

0.5.22

1 file

0.5

2 files

0.4

1 file

0.3.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page