multiInstance Cardinality

How to programatically access MultiInstanceActivityInstanceImpl ?

Dear bonita users,

I want to gain access to my multiInstanciated activity cardinality from within a script. I saw this method was provided by the MultiInstanceActivityInstanceImpl class:


So is it possible to access this method from within my script (this script is run while the multiInstance is happening). How do I get a reference to current multiInstanceActivity ?