8000 Adding accumulator pattern sample (#616) · temporalio/samples-java@f666773 · GitHub
[go: up one dir, main page]

Skip to content

Commit f666773

Browse files
authored
Adding accumulator pattern sample (#616)
* adding hello accumulator * updates * Accumulator: adding a test for signal after exit signal, switching out default tests in main * feedback from PR: switching to interface for Deque; removing unnecessary clauses in accumulateGreetings() and processGreeting(); clarifying bad bucket checks * renaming variables and functions based on code review * improvement from code review, setting license to match required license * Accepting Tiho's suggestion to process signals in-loop, reducing use of timers
1 parent ad76b88 commit f666773

File tree

4 files changed

+1070
-0
lines changed

4 files changed

+1070
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ See the README.md file in each main sample directory for cut/paste Gradle comman
4848
#### Hello samples
4949

5050
- [**Hello**](/core/src/main/java/io/temporal/samples/hello): This sample includes a number of individual Workflows that can be executed independently. Each one demonstrates something specific.
51+
52+
- [**HelloAccumulator**](/core/src/main/java/io/temporal/samples/hello/HelloAccumulator.java): Demonstrates a Workflow Definition that accumulates signals and continues as new.
5153
- [**HelloActivity**](/core/src/main/java/io/temporal/samples/hello/HelloActivity.java): Demonstrates a Workflow Definition that executes a single Activity.
5254
- [**HelloActivityRetry**](/core/src/main/java/io/temporal/samples/hello/HelloActivityRetry.java): Demonstrates how to Retry an Activity Execution.
5355
- [**HelloActivityExclusiveChoice**](/core/src/main/java/io/temporal/samples/hello/HelloActivityExclusiveChoice.java): Demonstrates how to execute Activities based on dynamic input.

0 commit comments

Comments
 (0)
0