cancel
Showing results for 
Search instead for 
Did you mean: 

Business object Initialize and cleanup actions

MayankGoyal2
Level 8
Hi,
Looking for some inputs on below points - 

1) When we call object from a process, whenever it is referred for first time in process within action stage, at that time object is loaded in memory and initialize action is called?
2) It stays in memory till session is running and released when session is completed or terminated or stopped?
3) The clean up action of object is called only at the time process is completed or terminated or stopped?
4) If process is looping on WQ items, is there a way to call clean up action of a business object after every WQ item?

5) When we call a process (may be a reusable process) from another process, is called process released as soon as its execution is completed and it doesn't stay loaded like business object?

------------------------------
Mayank Goyal
------------------------------
2 REPLIES 2

TimGrassam
Staff
Staff
Hi,

Please see below for my thoughts

Looking for some inputs on below points - 

1) When we call object from a process, whenever it is referred for first time in process within action stage, at that time object is loaded in memory and initialize action is called? - Correct
2) It stays in memory till session is running and released when session is completed or terminated or stopped? - Correct
3) The clean up action of object is called only at the time process is completed or terminated or stopped? - Correct
4) If process is looping on WQ items, is there a way to call clean up action of a business object after every WQ item? - I don't think so.  ~Let me check and get back to you

5) When we call a process (may be a reusable process) from another process, is called process released as soon as its execution is completed and it doesn't stay loaded like business object? - Correct

------------------------------
Tim Grassam
Consulatant
Blue Prism
Europe/London
------------------------------

Re question 4:

The clean up action cannt be called within the process.   If you require bespoke clean up activity, then it could be exposed as a published action. But you cannot 'release object from process memory during a process

------------------------------
Tim Grassam
Consulatant
Blue Prism
Europe/London
------------------------------