• Stars
    star
    1,652
  • Rank 28,104 (Top 0.6 %)
  • Language
    Python
  • License
    GNU Lesser Genera...
  • Created over 14 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A powerful workflow engine implemented in pure Python

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

Build Status SpiffWorkflow Documentation Status Issues Pull Requests

Code style

PEP8

Dependencies

We've worked to minimize external dependencies. We rely on lxml for parsing XML Documents, and there is some legacy support for Celery, but it is not core to the implementation, it is just a way to interconnect these systems. Built with

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.
  • Forms - forms, including text fields, selection lists, and most every other thing you can be extracted from the Camunda xml extension, and returned as json data that can be used to generate forms on the command line, or in web applications (we've used Formly to good success)
  • 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 ReadTheDocs Also, checkout our example application, which we reference extensively from the Documentation.

Installation

pip install spiffworkflow

Tests

cd tests/SpiffWorkflow
coverage run --source=SpiffWorkflow -m unittest discover -v . "*Test.py"

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

More Repositories

1

spiff-arena

SpiffWorkflow is a software development platform for building, running, and monitoring executable diagrams
Python
54
star
2

spiff-example-cli

Python
37
star
3

bpmn-js-spiffworkflow

A BPMN.js extension to improve working with SpiffWorkflow - the python BPMN engine.
JavaScript
19
star
4

cr-connect-workflow

Python
6
star
5

SpiffyDuck

A companion to the blog post "Build your own Low-Code Business Applications with SpiffWorkflow"
Python
6
star
6

spiffworkflow-backend

Python
5
star
7

sample-process-models

Some BPMN,DMN samples structured for Spiff-workflow-webapp.
5
star
8

spiffworkflow-frontend

spiff engine frontend
TypeScript
4
star
9

flask-bpmn

Python
4
star
10

connector-proxy-demo

A Spiff-Connector for demonstration purposes - shows how to build connectors to some common 3rd party systems.
Dockerfile
4
star
11

connector-proxy-status-im

spiffworkflow-backend will talk to this app in order to discover the list of connectors and to make actual connections to external services
Python
3
star
12

connector-aws

Make AWS Services available to SpiffWorkflow Service Tasks
Python
2
star
13

docker-python

Base Docker image for Python Flask apps
Shell
2
star
14

spiffworkflow-proxy

A Flask Blueprint to connect SpiffWorkflow Service Tasks to your organizations APIs
Python
2
star
15

rjsf-validator-ajv8-test

TypeScript
1
star
16

uva-covid19-testing-communicator

Python
1
star
17

diagram-js-code-editor

JavaScript
1
star
18

connector-proxy-lambda-demo

Python
1
star
19

connector-smtp

SMTP Connector
Python
1
star
20

connector-http

Make HTTP Requests available to SpiffWorkflow Service Tasks
Python
1
star