symfony/workflow
Posted 佩琦日记
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了symfony/workflow相关的知识,希望对你有一定的参考价值。
https://symfony.com/doc/current/components/workflow.html
The Workflow component provides tools for managing a workflow or finite state machine.
composer require symfony/workflow
require the `vendor/autoload.php` file in your code
Creating a Workflow
The workflow component gives you an object oriented way to define a process or a life cycle that your object goes through.
Each step or stage in the process is called a `place`(状态).
You do also define `transitions`(变化) that describe the action to get from one place to another.
A set of places and transitions creates a definition. A workflow needs a Definition and a way to write the states to the objects
https://symfony.com/doc/current/workflow/workflow-and-state-machine.html
https://en.wikipedia.org/wiki/Petri_net
A workflow is a model of a process in your application.
A state machine is a subset of a workflow and its purpose is to hold a state of your model.
https://symfony.com/doc/current/workflow/dumping-workflows.html
https://symfony.com/doc/current/workflow.html
https://symfony.com/doc/current/the-fast-track/en/19-workflow.html
https://devgiants.fr/blog/2020/03/02/symfony-workflow-component-walkthrough-part-1/
https://github.com/lyrixx/SFLive-Paris2016-Workflow
以上是关于symfony/workflow的主要内容,如果未能解决你的问题,请参考以下文章