Skip to content

Add defaultEventSource to WorkflowApplication#1556

Open
matheusandre1 wants to merge 1 commit into
open-workflow-specification:mainfrom
matheusandre1:issue1554
Open

Add defaultEventSource to WorkflowApplication#1556
matheusandre1 wants to merge 1 commit into
open-workflow-specification:mainfrom
matheusandre1:issue1554

Conversation

@matheusandre1

Copy link
Copy Markdown
Contributor

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it: Closes: #1554

Special notes for reviewers:

Additional information (if needed):

@matheusandre1
matheusandre1 marked this pull request as ready for review July 22, 2026 18:32
@matheusandre1
matheusandre1 requested a review from fjtirado as a code owner July 22, 2026 18:32
@ricardozanini

Copy link
Copy Markdown
Collaborator

@matheusandre1 you must sign your commits with -S.

@matheusandre1

Copy link
Copy Markdown
Contributor Author

@matheusandre1 you must sign your commits with -S.

Sorry, I always forget about that.

@fjtirado fjtirado left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@matheusandre1
Lets make default event source a WorkflowValueResolver, so it returns an URI from the WorkflowContext, TaskContext and Model

Signed-off-by: Matheus André <matheusandr2@gmail.com>
Comment on lines +40 to +42
List<CloudEvent> events = Collections.synchronizedList(new ArrayList<>());
InMemoryEvents broker = new InMemoryEvents();
broker.register(eventType, events::add);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is a lot of duplicated code in these test, lets avoid copy paste and use "@beforeeach" annotation

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.

Improve CloudEvent defaults and validation for emit events

3 participants