0 votes
501 views
in Interview Questions by

1 Answer

0 votes
by
selected by anonymous
 
Best answer

it depends on the type of variable and also from and to whether it is a BPD or service

FromToTypePass by
BPD activityServiceSimpleValue
BPD activityServiceComplexValue
BPD activityLinked BPDSimpleValue
BPD activityLinked BPDComplexReference
ServiceNested serviceSimpleValue
ServiceNested serviceComplexReference

If you don't want to affect the original value, if it is a pass by reference, you can make a deep copy by serializing the complex variable and de-serializing it and then storing in in a new variable.

by (440 points)
There is another concept besides Pass By Value and Pass By Reference, it is the "Pass By Value with Reference".

This comes into picture for the Shared Business Objects.

Please consider the below scenario.
For example, a shared object is passed by value with reference from a process to two different services. The process and services each contain a separate copy of the business object. When the first service completes, the shared object values are automatically persisted to the data store. When the second service starts, the shared object values are automatically loaded from the data store. So even though the process and the two services reference separate objects, the values of these objects are updated by the data store and the services operate on current data.

Related questions

+1 vote
2 answers 1.1k views
0 votes
1 answer 521 views
0 votes
1 answer 298 views
0 votes
1 answer 339 views
0 votes
1 answer 795 views
–1 vote
1 answer 271 views
0 votes
1 answer 208 views
+1 vote
2 answers 1.8k views
0 votes
0 answers 119 views
+1 vote
1 answer 513 views
0 votes
0 answers 123 views
0 votes
1 answer 1.1k views

586 questions

483 answers

87 comments

1.7k 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
...