symfony/workflow

Posted 佩琦日记

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了symfony/workflow相关的知识,希望对你有一定的参考价值。

  1. https://symfony.com/doc/current/components/workflow.html

    1. The Workflow component provides tools for managing a workflow or finite state machine.

    2. composer require symfony/workflow

    3. require the `vendor/autoload.php` file in your code

  2. Creating a Workflow

    1. The workflow component gives you an object oriented way to define a process or a life cycle that your object goes through.

    2. Each step or stage in the process is called a `place`(状态).

    3. You do also define `transitions`(变化) that describe the action to get from one place to another.

    4. A set of places and transitions creates a definition. A workflow needs a Definition and a way to write the states to the objects

  3. https://symfony.com/doc/current/workflow/workflow-and-state-machine.html

    1. https://en.wikipedia.org/wiki/Petri_net

    2. A workflow is a model of a process in your application.

    3. A state machine is a subset of a workflow and its purpose is to hold a state of your model.

  4. https://symfony.com/doc/current/workflow/dumping-workflows.html

  5. https://symfony.com/doc/current/workflow.html

  6. https://symfony.com/doc/current/the-fast-track/en/19-workflow.html

  7. https://devgiants.fr/blog/2020/03/02/symfony-workflow-component-walkthrough-part-1/

  8. https://github.com/lyrixx/SFLive-Paris2016-Workflow

以上是关于symfony/workflow的主要内容,如果未能解决你的问题,请参考以下文章