Adding workflows to other content objects#
In order to apply workflow to other classes (e.g. MyObject), you need
to apply it to both the model class and the controller
which is used for editing it. Here's an example for MyObject
which is managed through a MyObjectAdmin controller,
extending from ModelAdmin.
yaml
App\Models\MyObject:
extensions:
- 'Symbiote\AdvancedWorkflow\Extensions\WorkflowApplicable'
App\ModelAdmins\MyObjectAdmin:
extensions:
- 'Symbiote\AdvancedWorkflow\Extensions\AdvancedWorkflowExtension'
Notification emails sent by a NotifyUsersWorkflowAction substitute a known set of variables and never evaluate their content as a template. See the Security section for more details.