-
Notifications
You must be signed in to change notification settings - Fork 13
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 engine foundations #1172
Conversation
6b0e6af
to
3d315bf
Compare
// Workflow exposes functions of the workflow | ||
type Workflow struct { | ||
event *eventsdk.Event | ||
eventStream *eventsdk.Listener |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventStream is used only in start method so it can be removed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used to check that the workflow engine is not started already and we should keep it in order to close the listener when we stop the workflow engine (not yet implemented)
Basic implementation of workflow.
For now, workflows are limited to only event and a single task (final implementation will be event or result and multiple tasks)
Testing:
service.json
🎉 you have new executions created because of the event from the service that is triggered by this workflow