Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Significance of the Script Boundary

When a script completes, all process Data Fields are independently converted to a form that can be stored in a database. Therefore, in a later script, modifying a value in one place never affects the other, regardless of whether a by reference assignment occurred in an earlier script.

This is illustrated by the following two scripts, which can be assumed to run one after the other, operating on the same process Data Fields:

Script 1:

    data.personDataField1.age = 20;
    data.personDataField2 = data.personDataField1; // Both data fields now // refer to same object
    data.personDataField1.age = 35; // This affects both data fields

Script 2:

    // Each data field now refers to an independent Person object
    data.personDataField1.age = 40; // do not affect
                               // personDataField2.age (still 35)

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.