File tree Expand file tree Collapse file tree
springboot/src/main/java/io/temporal/samples/springboot/customize Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import io .temporal .spring .boot .WorkerOptionsCustomizer ;
2626import io .temporal .worker .WorkerFactoryOptions ;
2727import io .temporal .worker .WorkerOptions ;
28+ import io .temporal .worker .WorkflowImplementationOptions ;
2829import javax .annotation .Nonnull ;
2930import org .springframework .context .annotation .Bean ;
3031import org .springframework .context .annotation .Configuration ;
@@ -98,4 +99,19 @@ public WorkerFactoryOptions.Builder customize(
9899 }
99100 };
100101 }
102+
103+ // WorkflowImplementationOptions customization
104+ @ Bean
105+ public TemporalOptionsCustomizer <WorkflowImplementationOptions .Builder >
106+ customWorkflowImplementationOptions () {
107+ return new TemporalOptionsCustomizer <>() {
108+ @ Nonnull
109+ @ Override
110+ public WorkflowImplementationOptions .Builder customize (
111+ @ Nonnull WorkflowImplementationOptions .Builder optionsBuilder ) {
112+ // set options on optionsBuilder such as per-activity options
113+ return optionsBuilder ;
114+ }
115+ };
116+ }
101117}
You can’t perform that action at this time.
0 commit comments