Skip to content

Commit d40922f

Browse files
committed
Merge branch '4.2'
* 4.2: Workflow configuration
2 parents a5e0f07 + 6f3a761 commit d40922f

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

reference/configuration/framework.rst

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,13 +2628,19 @@ Name of the workflow you want to create.
26282628
audit_trail
26292629
"""""""""""
26302630

2631-
**type**: ``array``
2631+
**type**: ``bool``
2632+
2633+
If set to ``true``, the :class:`Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener`
2634+
will be enabled.
26322635

26332636
initial_place
26342637
"""""""""""""
26352638

26362639
**type**: ``string`` **default**: ``null``
26372640

2641+
One of the ``places`` or ``null``. If not null and the supported object is not
2642+
already initialized via the workflow, this place will be set.
2643+
26382644
marking_store
26392645
"""""""""""""
26402646

@@ -2652,11 +2658,16 @@ places
26522658

26532659
**type**: ``array``
26542660

2661+
All available places (**type**: ``string``) for the workflow configuration.
2662+
26552663
supports
26562664
""""""""
26572665

26582666
**type**: ``string`` | ``array``
26592667

2668+
The FQCN (fully-qualified class name) of the object supported by the workflow
2669+
configuration or an array of FQCN if multiple objects are supported.
2670+
26602671
support_strategy
26612672
""""""""""""""""
26622673

@@ -2669,11 +2680,13 @@ transitions
26692680

26702681
Each marking store can define any of these options:
26712682

2672-
* ``from`` (**type**: ``string``)
2673-
* ``guard`` (**type**: ``string``) a :doc:`ExpressionLanguage </components/expression_language>`
2674-
compatible expression to block the transition
2675-
* ``name`` (**type**: ``string``)
2676-
* ``to`` (**type**: ``string``)
2683+
* ``from`` (**type**: ``string`` or ``array``) value from the ``places``,
2684+
multiple values are allowed for both ``workflow`` and ``state_machine``;
2685+
* ``guard`` (**type**: ``string``) an :doc:`ExpressionLanguage </components/expression_language>`
2686+
compatible expression to block the transition;
2687+
* ``name`` (**type**: ``string``) the name of the transition;
2688+
* ``to`` (**type**: ``string`` or ``array``) value from the ``places``,
2689+
multiple values are allowed only for ``workflow``.
26772690

26782691
.. _reference-workflows-type:
26792692

0 commit comments

Comments
 (0)