Go to file
Dan Funk 9896abe787
Merge pull request #19 from sartography/bugfix/update-spiff-version-and-script-engine
update spiff version and restore script engine
2022-11-03 09:31:37 -04:00
bin add bin/run_in_docker 2022-05-21 11:40:31 -04:00
bpmn update diagrams 2022-10-12 13:46:44 -04:00
bpmn-spiff update diagrams 2022-10-12 13:46:44 -04:00
engine add docker execution environment 2022-09-14 19:49:12 -04:00
.gitignore update script engine examples 2022-10-06 13:34:34 -04:00
.tool-versions add bin/run_in_docker 2022-05-21 11:40:31 -04:00
COPYING Adding the GLPL license. 2022-05-12 09:46:02 -04:00
Dockerfile add bin/run_in_docker 2022-05-21 11:40:31 -04:00
README.rst rename to match repo name 2022-05-23 13:42:15 -04:00
custom_script_engine.py update script engine examples 2022-10-06 13:34:34 -04:00
requirements.txt update spiff version and restore script engine 2022-11-03 08:17:06 -04:00
run-spiff.py update spiff version and restore script engine 2022-11-03 08:17:06 -04:00
run.py update spiff version and restore script engine 2022-11-03 08:17:06 -04:00
utils.py add runner for spiff extension task types 2022-10-12 13:46:32 -04:00

README.rst

spiff-example-cli
==============

.. sidebar:: Note

   As of writing, this documentation has not been tried on Windows

This is the documentation and example repository for the SpiffWorkflow BPMN workflow engine.
Below is a brief outline on how to get started using this documentation - which in itself is designed as a tool for
getting started with Spiffworkflow.

Clone this repository
------------------

.. code:: bash

   git clone https://github.com/sartography/spiff-example-cli.git

Set up virtual environment
--------------------------

.. code:: bash

    cd spiff-example-cli
    python3 -m venv venv
    source ./venv/bin/activate

Install Requirements
--------------------

.. code:: bash

    pip3 install -r requirements.txt


Using the Application
---------------------

This application is intended to accompany the documentation for `SpiffWorkflow
<https://spiffworkflow.readthedocs.io/en/latest/index.html>`_.  Further discussion of
the models and application can be found there.

Models
^^^^^^

Example BPMN and DMN files can be found in the :code:`bpmn` directory of this repository.

Running a Workflow
^^^^^^^^^^^^^^^^^^

To execute the complete workflow:

.. code:: bash

   ./run.py -p order_product \
       -d bpmn/product_prices.dmn bpmn/shipping_costs.dmn \
       -b bpmn/multiinstance.bpmn bpmn/call_activity_multi.bpmn

To restore a saved workflow:

.. code:: bash

   ./run.py -r <saved_workflow_file>

To see all program options:

.. code:: bash

   ./run.py --help

Run in docker
^^^^^^^^^^^^^

.. code:: bash

   ./bin/run_in_docker

## License
GNU LESSER GENERAL PUBLIC LICENSE