0 votes
2.2k views
in Interview Questions by

1 Answer

+3 votes
by
selected by anonymous
 
Best answer

Deep Copy is a built in operation on which Lombardi Teamworks/IBM BPM relies heavily in an automated manner, whenever a pass by value takes place a deep copy operation is done by the process server. it basically serializes the object and then deserializes to get a non referenced exact copy of the object. Deep copy is a resource intensive process that is why it is recommended to skinny down your complex large BOs especially when pass by value happens, or to nullify the not needed BOs.

The syntax in JSApis as follows

tw.local.newVariable = tw.system.serializer.fromXml ( tw.system.serializer.toXml ( tw.local.somevariable ) );

after this operation the newVariable will hold an exact copy of somevariable but ther will be no linkage by reference and the two objects will be disassociated

by (100 points)
Hi ,

we can directly copy one BO to other BO (of same type) also , what is the difference apart from u mentioned above like resource intensive process.
by (700 points)
I do agree that we can copy one BO to other BO, but it will copy the reference. A deep copy is required when you do not want the original variable with the complex business object not to be tweaked.

Related questions

0 votes
1 answer 833 views
+1 vote
1 answer 1.6k views
0 votes
2 answers 1.9k views
0 votes
1 answer 735 views
0 votes
1 answer 541 views
+1 vote
1 answer 560 views
0 votes
1 answer 1.3k views
+1 vote
1 answer 1.5k views
0 votes
1 answer 1.5k views
0 votes
1 answer 2.5k views
0 votes
1 answer 1.5k views
+1 vote
2 answers 5.0k views

635 questions

495 answers

98 comments

3.0k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...