Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event-subscriber to throw flushed workflow events #188

Draft
wants to merge 1 commit into
base: 0.9
Choose a base branch
from

Conversation

wachterjohannes
Copy link
Member

Fixes #129

public static function getSubscribedEvents()
{
return [
sprintf('workflow.%s.completed', WorkflowInterface::WORKFLOW_DEFAULT_NAME) => 'onCompleted',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create an issue that this is here hardcoded and we should find a way that this events are also thrown for custom workflows

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could hear on workflow.completed and check for the names (but they have to be declared then somehow)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we know all the names of the worklows?

@wachterjohannes wachterjohannes force-pushed the feature/flushed-events branch 2 times, most recently from 94bc27b to 5323396 Compare February 15, 2021 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emit an event when a ContentWorkflow transition is flushed
2 participants