Q: Server Side Logic's Parameter is by value or by reference?

Q: Server Side Logic's Parameter is by value or by reference?

  

As topic...


If I have huge BinaryData from Uploaded File:

- can I encapsulate logic and send BinaryData as parameter to another logic

- or should I processed it straight in 1 Logic Flow to minimize memory consumption?


Thanks.

Solution

Hi,


BinaryData is pass by reference, 

see also:

http://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Designing_Actions%2FAbout_Input_Parameters.htm

cannot find the v10 equivalent quickly


Solution

Thanks for your information.

Input Parameters Passed as Reference

However, to avoid performance deterioration, when the action called is from the same module there are data types that are passed by reference:


    • Binary Data;

    • Object;

    • Lists.


Another question is how about custom Record type, is it passed by value or reference?

Thanks again.

Hi Harlin,

Records are always passed by value, but any lists inside the record are, afaik, passed by reference.

Thanks.