We are using OEBPM 11.7.3. We have a class which uses static variable to save (cache) a token, and we can obtain new token value every one hour or so instead of every time class is invoked. In the code, we check whether this static variable is null or the age of this token has passed 1 hour. If so, we will establish connection to IDM to obtain a new token. Otherwise, we just use the saved (cached) token. It is a very straight-forward implementation.

When we use this class in custom adapter, we found out that this static variable is always null. The variable never has value saved. We suspect that the custom adapter initiates a new instance of this class and the static variable every time it is invoked.

However, if we use this same class in the pre-activation section of the  adapter Or task workstep, the variable caches token without any issue.

Has anybody else encountered this issue? Did we do anything wrong in our code?

Thanks a lot for your input in advance!