Skip to content

[Workflow] Attach workflow configuration to tags #19664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions service_container/tags.rst
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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