Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Invoking Operations on Business Object Attributes

As well as attributes, some classes have methods which perform operations on the object.

For example, the String class is used to represent a Text attribute’s value, such as the name of a customer. Two of its methods are to `UpperCase()` and `toLowerCase()`.

    lowercaseName = data.customer.name.toLowerCase();
    uppercaseName = data.customer.name.toUpperCase();

In this example, if the Text attribute `data.customer.name` was "Fred Blogs", then the first assignment would set the `lowercaseName` variable to the value `"fred blogs"`, and the second assignment would set the `uppercaseName` variable to the value `"FRED BLOGS"`. In some cases, such as the example cited above, methods can return values. In other cases, methods can alter some of the attributes of the instance. It is important to know how the methods behave when you are using them.

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.