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

feat: migrate twitter example to Camunda Spring SDK #573

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

megglos
Copy link
Contributor

@megglos megglos commented Dec 30, 2024

Description

Migrates the twitter sample referenced in the Development docs to make use of the offical SDK + the sdk testing module (fork from former community sdk) released with the 8.6.7 patch.

Closes camunda/camunda#26429

Additional context

Types of changes

  • Bug fix (non-breaking change which fixes an existing open issue)
  • New example (non-breaking change which adds functionality to an extension)
  • Documentation update (changes made to an existing piece of documentation)

Checklist:

  • My code is formatted by spotless
  • I have added at least one meaningful test to assert the behaviour of the example.
  • I have created documentation that informs about the purpose, the functionality and how to setup the example
  • I have added a build job for my example to .github/workflows/build.yaml

@@ -18,7 +21,7 @@ public void handleTweet(@VariablesAsType TwitterProcessVariables variables) thro
try {
twitterService.tweet(variables.getTweet());
} catch (DuplicateTweetException ex) {
throw new ZeebeBpmnError("duplicateMessage", "Could not post tweet, it is a duplicate.");
throw new ZeebeBpmnError("duplicateMessage", "Could not post tweet, it is a duplicate.", Map.of());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

UX flaw that we lack a compatible ctor, will follow-up with the team.

@megglos megglos force-pushed the meg-26429-migration-to-spring-sdk branch 2 times, most recently from 9a600c2 to c1680dd Compare December 30, 2024 17:14
@megglos megglos marked this pull request as ready for review December 30, 2024 17:54
@megglos megglos force-pushed the meg-26429-migration-to-spring-sdk branch from c1680dd to 2880f5a Compare January 2, 2025 15:34
@megglos megglos force-pushed the meg-26429-migration-to-spring-sdk branch from 2880f5a to 7c70148 Compare January 7, 2025 18:03
<spring-boot.version>3.3.0</spring-boot.version>
<zeebe.version>8.5.10</zeebe.version>
<spring-zeebe.version>8.5.7</spring-zeebe.version>
<spring-boot.version>3.3.7</spring-boot.version>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

aligned with the version used by the sdk

Copy link
Collaborator

@jonathanlukas jonathanlukas left a comment

Choose a reason for hiding this comment

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

lgtm

@megglos megglos merged commit 2880430 into main Jan 8, 2025
15 checks passed
@megglos megglos deleted the meg-26429-migration-to-spring-sdk branch January 8, 2025 19:05
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.

Update camunda-8-examples repo to make use of the 8.6 sdk and test module
2 participants