Is sailpoint.server.InternalContext thread safe?

Hi, I’m wanting to have beanshell call into some java code that I’m looking at making multi-threaded. Is the InternalContext object beanshell uses safe for using across multiple threads? My intuition says so based on what appears to be lock/transaction based interactions with internal sailpoint objects, but I have no way of knowing for sure.

It depends on what you are changing in your code, or what you are trying to execute in a thread-safe manner. In many cases you will have to explicitly lock objects before changing them, or add Java “synchronized” blocks in your code to enfore thread-safe execution. Check the Beanshell Developer Guide, specifically in the chapters 6 & 20: https://community.sailpoint.com/t5/Technical-White-Papers/BeanShell-Developer-s-Guide-for-IdentityIQ/ta-p/74365