Hi,
I am building a jar which I would like to use in Bonita. I would like to use APIAccessor inside my jar so I could make reusable code in convenient way. What is preferable method to do it?
One way to do it is by passing apiAccessor given in Bonita groovy script as a paremeter for a method or an object. I don’t see any dangers in this method, but it’s a little troublesome.
Second way to do it is by creating an APIAccessorImpl() inside a method/object executed from Bonita groovy script. Does this action implicate any drawbacks?
- Is another connection taken from connection pool?
- Is nested transaction executed?
- Is there any significant overhead involved?
- Is it safe to use it?