framework: workflows: blog_publishing: type: 'state_machine' # or 'state_machine' audit_trail: enabled: true marking_store: type: 'method' property: 'state' supports: - App\Entity\Article initial_marking: draft places: # defining places manually is optional - draft - reviewed - rejected - published transitions: to_review: guard: is_granted('edit', subject) from: rejected to: reviewed publish: guard: is_granted('publish', subject) from: [reviewed,draft] to: published reject: guard: is_granted('ROLE_MODERATOR') from: [reviewed, published] to: rejected to_draft: guard: is_granted('edit', subject) from: published to: draft