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

[workflow] separating consumed/produced event types #186

Closed
manuelstein opened this issue Mar 9, 2020 · 1 comment
Closed

[workflow] separating consumed/produced event types #186

manuelstein opened this issue Mar 9, 2020 · 1 comment
Labels
workflow workflow spec

Comments

@manuelstein
Copy link
Contributor

Status: A workflow description has an events property, a set of CloudEvent definitions that can be "consumed or produced". Each event definition has a mandatory source and type in accordance with CloudEvents.

Issue: It is difficult to identify the ones produced and the ones consumed. An engine that acts as the producer would need to ensure that all created events' source+ID pairs are unique, e.g. by putting itself as source. An engine may want to register as consumer of consumed event types only.
Should the spec separate produced/consumed event types?

Also, for the types produced, what would be used as source?
The developer can statically set an absolute URI and would somehow need to ensure all produced events' IDs are unique (UUIDs are typically reliable). Or would the workflow engine want to put its own absolute URI to identify as the source of an event?

@tsurdilo
Copy link
Collaborator

tsurdilo commented Mar 11, 2020

** Should the spec separate produced/consumed event types? ** - I would say no for now. Reason being is an event can be both consumed and produced if needed.

The source of produced events should be determined by the implementation which is actually going to produce it. Same for correlation context variable. I don't think this should be part of the workflow definition. Good point tho as that is something we should add to the documentation. I will create pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workflow workflow spec
Projects
None yet
Development

No branches or pull requests

2 participants