Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Factories

At runtime, when a new object needs to be created to represent a particular Business Object (instance of a BOM class) or another variable, a `factory` method needs to be used to create the object instead of using the `new` keyword that is usually used in JavaScript.

The factory methods for BOM classes can be found in factory classes whose names match the package name of the BOM, for example, for a BOM with a package name `com.example.ordermodel` the factory class would be called `factory.com_example_ordermodel`, and there would be methods in the factory called `createClassname` for each class in the BOM. For example, if the BOM contained Classes called Order, OrderLine, and Customer, there would be the following factory methods:

    factory.com_example_ordermodel.createOrder()
    factory.com_example_ordermodel.createOrderLine()
    factory.com_example_ordermodel.createCustomer()

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.