cadence-java-client icon indicating copy to clipboard operation
cadence-java-client copied to clipboard

Add ability to specify ActivityOptions per activity

Open mfateev opened this issue 6 years ago • 0 comments

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);

mfateev avatar Aug 05 '19 18:08 mfateev