0 votes
in Interview Questions by

1 Answer

+3 votes
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 453 views
+1 vote
1 answer 590 views
0 votes
2 answers 908 views
0 votes
1 answer 333 views
0 votes
1 answer 190 views
+1 vote
1 answer 219 views
0 votes
1 answer 755 views
+1 vote
1 answer 705 views
0 votes
1 answer 510 views
0 votes
1 answer 1.1k views
0 votes
1 answer 472 views
+1 vote
2 answers 2.6k views

602 questions

493 answers


1.9k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
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