Implement context state for example workflow.
Implement event subscriber for triggering publishing.