Skip to content

Commit

Permalink
minor #19664 [Workflow] Attach workflow configuration to tags (alexan…
Browse files Browse the repository at this point in the history
…dre-daubois)

This PR was merged into the 7.1 branch.

Discussion
----------

[Workflow] Attach workflow configuration to tags

Fix #19659

Commits
-------

e94de7a [Workflow] Attach workflow configuration to tags
  • Loading branch information
javiereguiluz committed Mar 18, 2024
2 parents b9b4231 + e94de7a commit 6645401
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service_container/tags.rst
Expand Up @@ -458,6 +458,8 @@ or from your kernel::
:ref:`components documentation <components-di-compiler-pass>` for more
information.

.. _tags_additional-attributes:

Adding Additional Attributes on Tags
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
13 changes: 13 additions & 0 deletions workflow.rst
Expand Up @@ -366,6 +366,17 @@ name.
* ``workflow.workflow``: all workflows;
* ``workflow.state_machine``: all state machines.

Note that workflow metadata are attached to tags under the
``metatdata`` key, giving you more context and information about the workflow
at disposal. You can learn more about
:ref:`tag attributes <tags_additional-attributes>` and
:ref:`storing workflow metadata <workflow_storing-metadata>`
in their dedicated sections.

.. versionadded:: 7.1

The attached configuration to the tag was introduced in Symfony 7.1.

.. tip::

You can find the list of available workflow services with the
Expand Down Expand Up @@ -1032,6 +1043,8 @@ The following example shows these functions in action:
<span class="error">{{ blocker.message }}</span>
{% endfor %}

.. _workflow_storing-metadata:

Storing Metadata
----------------

Expand Down

0 comments on commit 6645401

Please sign in to comment.