clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.7 KiB

framework:
workflows:
article_publishing:
type: 'workflow'
audit_trail:
enabled: true
marking_store:
type: 'method'
property: 'currentPlace'
supports:
- App\Entity\Article
initial_marking: empty
places:
- draft
- published
- edited
transitions:
to_draft:
from: empty
to: draft
publish:
from:
- draft
- edited
to: published
edit:
from: published
to: edited
nzine_workflow:
type: state_machine
marking_store:
type: method
property: state
supports:
- App\Entity\Nzine
initial_marking: draft
places:
- draft
- profile_created
- main_index_created
- nested_indices_created
- published
transitions:
create_profile:
from: draft
to: profile_created
create_main_index:
from: profile_created
to: main_index_created
create_nested_indices:
from: main_index_created
to: nested_indices_created
publish:
from: nested_indices_created
to: published