Skip to content

Commit af6bca2

Browse files
Workflow configuration
1 parent 892bbda commit af6bca2

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

reference/configuration/framework.rst

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,16 +2249,33 @@ name
22492249

22502250
Name of the workflow you want to create.
22512251

2252+
.. _reference-workflows-type:
2253+
2254+
type
2255+
""""
2256+
2257+
**type**: ``string`` **possible values**: ``'workflow'`` or ``'state_machine'``
2258+
2259+
Defines the kind of workflow that is going to be created, which can be either
2260+
a normal workflow or a state machine. Read :doc:`this article </workflow/introduction>`
2261+
to know their differences.
2262+
22522263
audit_trail
22532264
"""""""""""
22542265

2255-
**type**: ``array``
2266+
**type**: ``bool``
2267+
2268+
Whether to enable automatically the :class:`Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener`.
22562269

22572270
initial_place
22582271
"""""""""""""
22592272

22602273
**type**: ``string`` **default**: ``null``
22612274

2275+
One of the ``places`` or ``null``.
2276+
If not null and the supported object is not already initialized via the workflow,
2277+
this place will be set.
2278+
22622279
marking_store
22632280
"""""""""""""
22642281

@@ -2276,11 +2293,15 @@ places
22762293

22772294
**type**: ``array``
22782295

2296+
All available places for this workflow configuration.
2297+
22792298
supports
22802299
""""""""
22812300

22822301
**type**: ``string`` | ``array``
22832302

2303+
Object(s) that is(are) supported by this workflow configuration.
2304+
22842305
support_strategy
22852306
""""""""""""""""
22862307

@@ -2293,22 +2314,13 @@ transitions
22932314

22942315
Each marking store can define any of these options:
22952316

2296-
* ``from`` (**type**: ``string``)
2297-
* ``guard`` (**type**: ``string``) a :doc:`ExpressionLanguage </components/expression_language>`
2317+
* ``name`` (**type**: ``string``) the name of the transition
2318+
* ``guard`` (**type**: ``string``) an :doc:`ExpressionLanguage </components/expression_language>`
22982319
compatible expression to block the transition
2299-
* ``name`` (**type**: ``string``)
2300-
* ``to`` (**type**: ``string``)
2301-
2302-
.. _reference-workflows-type:
2303-
2304-
type
2305-
""""
2306-
2307-
**type**: ``string`` **possible values**: ``'workflow'`` or ``'state_machine'``
2308-
2309-
Defines the kind of workflow that is going to be created, which can be either
2310-
a normal workflow or a state machine. Read :doc:`this article </workflow/introduction>`
2311-
to know their differences.
2320+
* ``from`` (**type**: ``string``) value from the ``places``
2321+
multiple values are allowed, for both ``workflow`` and ``statemachine``
2322+
* ``to`` (**type**: ``string``) value from the ``places``
2323+
multiple values are allowed only for both ``workflow``
23122324

23132325
.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
23142326
.. _`Security Advisory Blog post`: https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released#cve-2013-4752-request-gethost-poisoning

0 commit comments

Comments
 (0)