cadence-java-client
cadence-java-client copied to clipboard
Add ability to specify ActivityOptions per activity
Currently ActivityOptions apply to all activities on an activity interface. It is possible to use @ActivityMetho annotation to have different options per activity type, but annotation is not always the best way.
We have to provide a way to specify different ActivityOptions per activity type. Strawman:
A a = Workflow.newActivityStub(A.class);
Workflow.setActivityOptions(fooOptions, a::foo, a::bar);
or may be even:
fooOptions.override(a::foo, a::bar);