gupalo/bpmnworkflow-bundle

Bpmn Workflow Bundle

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:CSS

Type:symfony-bundle

v1.0.24 2022-05-15 06:48 UTC

README

Install

composer require gupalo/bpmnworkflow-bundle

Add to config/bundles.php

Gupalo\BpmnWorkflowBundle\BpmnWorkflowBundle::class => ['all' => true]

Add to config/packages/doctrine.yaml

mappings:
    BpmnWorkflowBundle:
        type: attribute

Add to config/routes/annotations.yaml

bpmnWorkflow:
    resource: '@BpmnWorkflowBundle/Resources/config/routes.yaml'

Add to config/packages/twig.yaml

twig:
    default_path: '%kernel.project_dir%/templates'
    form_themes:
        - bootstrap_4_layout.html.twig
        - '@BpmnWorkflow/_elements/bpmn_form_style.html.twig'

Save Trace as file. Add to services.yaml

Gupalo\BpmnWorkflow\Trace\TraceFileStorage:
    bind:
        $dirPath: '%kernel.project_dir%/var/traces'

Execute

php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
php bin/console assets:install

Test

For test in main app need install require-dev dependency

composer require symfony/phpunit-bridge --dev
composer require phpunit/phpunit --dev
composer require nelmio/alice --dev

Add to composer.json autoload-dev section

"autoload-dev": {
    "psr-4": {
        "App\\Tests\\": "tests/",
        "Gupalo\\BpmnWorkflowBundle\\Tests\\": "vendor/gupalo/bpmnworkflow-bundle/tests/"
    }
}

Execute

composer dump-autoload
php vendor/bin/phpunit vendor/gupalo/bpmnworkflow-bundle