cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Instances of Same Object

WillCarroll
Level 2
TLDR; What's the equivalent of the NEW keyword? I want to instantiate and object several times but cannot. Blue Prism Version 4. I use an object to attach to IBM mainframe. This all works fine, however I have a new process in which I could use two mainframe sessions open on the same desktop but the VBO we've always used cannot be used twice as all calls to the object from process level refer to the same/original instance of the object.
1 REPLY 1

BuzzaT
Level 4
From what I can tell, BP operates within Parent Child Scope. So every unique object called from parent X will be the same. What you could do, is pass an instance reference # with any method call, and the object can call itself times to a different scope level and using that Object instances attachment and function that way. (Essentially a recursive call to the requested Object instance) Or, you could keep it easy, and just 'Save As' your object to a new object file and just call that for Application #2.