Extending Workflow¶
Workflow event timeline¶
Workflow event timeline is used out of the box to display workflow transitions.
You can also use it to render custom entries in the timeline, for example system alerts on workflows.
Adding custom entry type¶
To add a custom entry type, create a custom class extending \EzSystems\EzPlatformWorkflow\WorkflowTimeline\Value\AbstractEntry
.
Use an \EzSystems\EzPlatformWorkflow\Event\TimelineEvents::COLLECT_ENTRIES
event to add your entries to the timeline.
Providing custom templates¶
To provide custom templates for new event timeline entries, use the following configuration:
1 2 3 4 5 6 7 |
|
The template has to provide a block named ez_workflow_timeline_entry_{ENTRY_IDENTIFIER}
.