Skip to content

Commit f733214

Browse files
committed
[Workflow] Remove a versionadded directive and an XML exmample
1 parent d980ce3 commit f733214

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

workflow.rst

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,6 @@ when needed and vice-versa when working with your objects::
391391
Using Weighted Transitions
392392
~~~~~~~~~~~~~~~~~~~~~~~~~~
393393

394-
.. versionadded:: 7.4
395-
396-
Support for weighted transitions was introduced in Symfony 7.4.
397-
398394
A key feature of workflows (as opposed to state machines) is that an object can
399395
be in multiple places simultaneously. For example, when building a product, you
400396
might assemble several components in parallel. However, in the previous example,
@@ -457,58 +453,6 @@ and track the process with a stopwatch. You can use weighted transitions to mode
457453
- stopwatch_running
458454
to: finished
459455
460-
.. code-block:: xml
461-
462-
<!-- config/packages/workflow.xml -->
463-
<?xml version="1.0" encoding="UTF-8" ?>
464-
<container xmlns="http://symfony.com/schema/dic/services"
465-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
466-
xmlns:framework="http://symfony.com/schema/dic/symfony"
467-
xsi:schemaLocation="http://symfony.com/schema/dic/services
468-
https://symfony.com/schema/dic/services/services-1.0.xsd
469-
http://symfony.com/schema/dic/symfony
470-
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
471-
472-
<framework:config>
473-
<framework:workflow name="make_table" type="workflow">
474-
<framework:marking-store type="method">
475-
<framework:argument>marking</framework:argument>
476-
</framework:marking-store>
477-
<framework:support>App\Entity\TableProject</framework:support>
478-
<framework:initial-marking>init</framework:initial-marking>
479-
480-
<framework:place>init</framework:place>
481-
<framework:place>prepare_leg</framework:place>
482-
<framework:place>prepare_top</framework:place>
483-
<framework:place>stopwatch_running</framework:place>
484-
<framework:place>leg_created</framework:place>
485-
<framework:place>top_created</framework:place>
486-
<framework:place>finished</framework:place>
487-
488-
<framework:transition name="start">
489-
<framework:from>init</framework:from>
490-
<framework:to weight="4">prepare_leg</framework:to>
491-
<framework:to weight="1">prepare_top</framework:to>
492-
<framework:to weight="1">stopwatch_running</framework:to>
493-
</framework:transition>
494-
<framework:transition name="build_leg">
495-
<framework:from>prepare_leg</framework:from>
496-
<framework:to>leg_created</framework:to>
497-
</framework:transition>
498-
<framework:transition name="build_top">
499-
<framework:from>prepare_top</framework:from>
500-
<framework:to>top_created</framework:to>
501-
</framework:transition>
502-
<framework:transition name="join">
503-
<framework:from weight="4">leg_created</framework:from>
504-
<framework:from>top_created</framework:from>
505-
<framework:from>stopwatch_running</framework:from>
506-
<framework:to>finished</framework:to>
507-
</framework:transition>
508-
</framework:workflow>
509-
</framework:config>
510-
</container>
511-
512456
.. code-block:: php
513457
514458
// config/packages/workflow.php

0 commit comments

Comments
 (0)