Skip to content
Merged
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
17 changes: 15 additions & 2 deletions workflow/dumping-workflows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ Below is the configuration for the pull request state machine with styling added
workflows:
pull_request:
type: 'state_machine'
marking_store:
type: 'method'
property: 'currentPlace'
supports:
- App\Entity\PullRequest
initial_place: start
initial_marking: start
places:
start: ~
coding: ~
Expand Down Expand Up @@ -140,10 +143,15 @@ Below is the configuration for the pull request state machine with styling added

<framework:config>
<framework:workflow name="pull_request" type="state_machine">
<framework:marking-store type="single_state"/>
<framework:marking-store>
<framework:type>method</framework:type>
<framework:property>currentPlace</framework:property>
</framework:marking-store>

<framework:support>App\Entity\PullRequest</framework:support>

<framework:initial_marking>start</framework:initial_marking>

<framework:place>start</framework:place>
<framework:place>coding</framework:place>
<framework:place>test</framework:place>
Expand Down Expand Up @@ -229,7 +237,12 @@ Below is the configuration for the pull request state machine with styling added
'workflows' => [
'pull_request' => [
'type' => 'state_machine',
'marking_store' => [
type: 'method',
property: 'currentPlace',
],
'supports' => ['App\Entity\PullRequest'],
'initial_marking' => 'start',
'places' => [
'start',
'coding',
Expand Down