also update README

This commit is contained in:
Elizabeth Esswein 2024-02-08 14:45:23 -05:00
parent ba11facb0e
commit 94bbed6bcf
1 changed files with 19 additions and 15 deletions

View File

@ -43,30 +43,34 @@ the models and application can be found there.
Models Models
^^^^^^ ^^^^^^
Example BPMN and DMN files can be found in the :code:`bpmn` directory of this repository. Example BPMN and DMN files can be found in the `bpmn` directory of this repository.
There are several versions of a product ordering process of variying complexity located in the
`bpmn/tutorial` directory of the repo which contain most of the elements that SpiffWorkflow supports. These
diagrams can be viewed in any BPMN editor, but many of them have custom extensions created with
`bpmn-js-spiffworflow <https://github.com/sartography/bpmn-js-spiffworkflow>`_.
Running a Workflow Loading Workflows
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
To execute the complete workflow: To add a workflow via the command line and store serialized specs in JSON files:
.. code:: bash .. code-block:: console
./spiff-bpmn-runner.py -p order_product \ ./runner.py -e spiff_example.spiff.file add \
-d bpmn/tutorial/product_prices.dmn bpmn/tutorial/shipping_costs.dmn \ -p order_product \
-b bpmn/tutorial/top_level_multi.bpmn bpmn/tutorial/call_activity_multi.bpmn -b bpmn/tutorial/{top_level,call_activity}.bpmn \
-d bpmn/tutorial/{product_prices,shipping_costs}.dmn
To restore a saved workflow: Running Workflows
^^^^^^^^^^^^^^^^^
.. code:: bash To run the curses application using serialized JSON files:
./spiff-bpmn-runner.py -r <saved_workflow_file> .. code-block:: console
To see all program options: ./runner.py -e spiff_example.spiff.file
.. code:: bash Select the 'Start Workflow' screen and start the process.
./spiff-bpmn-runner.py --help
Run in docker Run in docker
^^^^^^^^^^^^^ ^^^^^^^^^^^^^