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

Add before/after methods to workflow interceptor.

Open mfateev opened this issue 6 years ago • 1 comments

WorkflowInterceptor lacks methods that are invoked before the workflow is started and after it completes.

They might be necessary to inject appropriate thread local variables.

mfateev avatar Jul 28 '19 00:07 mfateev

Hello Maxim, Is there any posibility to create the start and after interceptor in the current version? We want to add our status custom logic in these point.

Thanks

JuanPalacios avatar Apr 21 '20 09:04 JuanPalacios

The current interceptor is far from ideal, but should be Ok for your use case: https://github.com/uber/cadence-java-client/blob/d56612f05108efd4696310935d99def3a794f915/src/main/java/com/uber/cadence/worker/WorkerOptions.java#L174

mfateev avatar Apr 21 '20 16:04 mfateev