Java SDK Workshop - Chapter 3 - Workflow, Activity Types, ContinueAsNew, Client error handling and more
- Section 1 - Types
- Section 2 - Typed vs untyped stubs
- Section 3 - Dynamic signals and queries with typed stubs
- Section 4 - Client errors and setting up SSL/mTLS
- Section 5 -ContinueAsNew and signals
-
Types represent a unique identification of workflow and activity definitions with a single worker.
-
Signal and Query names tie signals/queries with signal/query handlers.
-
Unique workflow/activity types can be registered with single worker.
-
Unique signal/query names are allowed in signal workflow definition.
-
Workflow and activity types play important role in invoking them.
-
Code in package c3s1
-
Workflow stubs
-
Activity stubs
-
Child workflow stubs
-
Code in package c3s2
Shows how to dynamically add signals and queries not exposed via workflow interface
- Code in package c3s3
-
Catching client errors
-
Setting up SSL (mTLS)
-
For adding mTLS support on server see samples repo here.
-
Code in package c3s4
Demo on sending signals while workflow is doing continueAsNew
- Code in package c3s5