aboutcoders / workflow-bundle
A symfony bundle that allows to define and manage workflows
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- aboutcoders/file-distribution-bundle: ~1.0
- aboutcoders/frontend-bundle: ~1.1
- aboutcoders/job-bundle: ~1.0
- aboutcoders/sequence-bundle: ~1.0
- gedmo/doctrine-extensions: ~2.0
- mopa/bootstrap-bundle: ~3.0
- sensio/framework-extra-bundle: ~3.0
- sonata-project/notification-bundle: ~2.2
- symfony/assetic-bundle: ~2.3
- symfony/symfony: ~2.1
Requires (Dev)
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- phpunit/phpunit: ~4
- symfony/monolog-bundle: ~2
- symfony/swiftmailer-bundle: ~2.3
This package is not auto-updated.
Last update: 2024-11-10 06:43:55 UTC
README
A symfony bundle that allows define and manage workflows.
Configuration
Add the bundle:
{ "require": { "aboutcoders/workflow-bundle": "dev-master" } }
Enable the bundles in the kernel:
# app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Knp\Bundle\MenuBundle\KnpMenuBundle(), new Abc\Bundle\WorkflowBundle\AbcWorkflowBundle(), // ... ); }
Configure routing
# app/config/routing.yml abc_workflow_tasks: resource: "@AbcWorkflowBundle/Resources/config/routing.yml" prefix: /
If you like to display workflow GUI you have to import optional routing rules
# app/config/routing.yml abc_workflow_workflows: resource: "@AbcWorkflowBundle/Resources/config/routing_optional.yml" prefix: /
Follow the installation and configuration instructions of the third party bundles:
Configure the bundle
# app/config/config.yml abc_workflow: db_driver: orm
Usage
Display workflow configuration GUI
{{ workflow_configuration(workflowEntity) }}
Display workflow history GUI
{{ workflow_history(workflowEntity) }}
Get workflow history via AJAX
{{ path('execution_history', { 'id': workflowId }) }}