Temporal and Spring AOP configuration

I am trying to add an advice around an activity using Spring AOP. But the advice is not getting called around the execution of the activity. Can anyone help me on how to add an advice a temporal activity?

Java sdk has support for different types of interceptors, see sample here that could be useful instead of using aop.

Also check out the spring boot autoconfig integration and demo.

For the question, can you show your activity impl and the aspects?

hey @tihomir, I have gone through the temporal interceptors concept. It is useful for us. But I have an another doubt that is there any possible way to add some data into ActivityExecutionContext?

I wouldn’t add data to ActivityExecutionContext. I would inject it into your own thread-local of the activity thread.