2017 © Pedro Peláez
 

symfony-bundle workflow-bundle

A symfony bundle that allows to define and manage workflows

image

aboutcoders/workflow-bundle

A symfony bundle that allows to define and manage workflows

  • Thursday, July 19, 2018
  • by aboutcoders
  • Repository
  • 3 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Symfony Workflow Bundle

A symfony bundle that allows define and manage workflows., (*1)

Configuration

Add the bundle:, (*2)

``` json { "require": { "aboutcoders/workflow-bundle": "dev-master" } }, (*3)


Enable the bundles in the kernel: ``` php # app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Knp\Bundle\MenuBundle\KnpMenuBundle(), new Abc\Bundle\WorkflowBundle\AbcWorkflowBundle(), // ... ); }

Configure routing, (*4)

``` yaml, (*5)

app/config/routing.yml

abc_workflow_tasks: resource: "@AbcWorkflowBundle/Resources/config/routing.yml" prefix: /, (*6)


If you like to display workflow GUI you have to import optional routing rules ``` yaml # 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:, (*7)

Configure the bundle, (*8)

``` yaml, (*9)

app/config/config.yml

abc_workflow: db_driver: orm, (*10)


## Usage Display workflow configuration GUI ``` twig {{ workflow_configuration(workflowEntity) }}

Display workflow history GUI, (*11)

``` twig {{ workflow_history(workflowEntity) }}, (*12)


Get workflow history via AJAX ``` twig {{ path('execution_history', { 'id': workflowId }) }}

The Versions