### Cloning the SpiffWorkflow Example CLI Repository - Bash Source: https://github.com/sartography/spiff-example-cli/blob/main/README.rst This command clones the spiff-example-cli repository from GitHub, providing access to the example code and documentation for the SpiffWorkflow BPMN engine. ```bash git clone https://github.com/sartography/spiff-example-cli.git ``` -------------------------------- ### Loading Workflows via Command Line for SpiffWorkflow Example CLI - Console Source: https://github.com/sartography/spiff-example-cli/blob/main/README.rst This command-line instruction uses the `runner.py` script to add BPMN and DMN workflow specifications. It specifies the entry point, project name, and paths to the BPMN and DMN files, which are then serialized and stored as JSON. ```console ./runner.py -e spiff_example.spiff.file add \ -p order_product \ -b bpmn/tutorial/{top_level,call_activity}.bpmn \ -d bpmn/tutorial/{product_prices,shipping_costs}.dmn ``` -------------------------------- ### Installing Python Dependencies for SpiffWorkflow Example CLI - Bash Source: https://github.com/sartography/spiff-example-cli/blob/main/README.rst This command uses pip to install all necessary Python packages listed in the 'requirements.txt' file. These dependencies are required for the SpiffWorkflow example application to function correctly. ```bash pip3 install -r requirements.txt ``` -------------------------------- ### Running the Curses Application for SpiffWorkflow Example CLI - Console Source: https://github.com/sartography/spiff-example-cli/blob/main/README.rst This command launches the curses-based application, allowing users to interact with the SpiffWorkflow engine using previously loaded and serialized JSON workflow files. Users can then select 'Start Workflow' to initiate a process. ```console ./runner.py -e spiff_example.spiff.file ``` -------------------------------- ### Setting Up a Python Virtual Environment for SpiffWorkflow Example CLI - Bash Source: https://github.com/sartography/spiff-example-cli/blob/main/README.rst These commands navigate into the cloned repository, create a new Python virtual environment named 'venv', and then activate it. Activating the virtual environment isolates project dependencies. ```bash cd spiff-example-cli python3 -m venv venv source ./venv/bin/activate ``` -------------------------------- ### Declaring Python Project Dependencies Source: https://github.com/sartography/spiff-example-cli/blob/main/requirements.txt This snippet specifies the Python packages required for the project. It includes `SpiffWorkflow` fetched directly from its GitHub repository's `main` branch, and exact version pins for `Jinja2` and `RestrictedPython` to ensure consistent environments. ```Python SpiffWorkflow @ git+https://github.com/sartography/SpiffWorkflow@main Jinja2==3.1.2 RestrictedPython==6.0 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.