Util Function Editor (Redwood)
Overview
The Function Editor contains a list of pre-defined BML functions that are available for use in advanced scripting. There are some variations in the Function Editor, depending on where you are located within the application: Commerce, Configuration, Commerce Library, or Util Library. The Function Editor allows you to create a new function or edit an existing function. You can access the Create Util Function page or Edit Util Function page from the Util BML Library Functions List.
Util and Commerce Library Function Editors use Function to Function calls. Function to Function calls allow admins to compartmentalize BML when dealing with complicated configuration or quoting scenarios. This feature will assist with the organization of BML and provides a solution to the compiled Java class size-limit issue. Function to function calls mimic the behavior of a Modify function calling a Library function.
To access the Util Function Editor, navigate to: Admin Home > Developer Tools & Utilities > BML Library
-
To edit or view an exiting function, click on the applicable function name link in the Util BML Library Functions List page.
-
To create a new function, click Create in the Util BML Library Functions List page.
-
To copy an existing function, click on the Actions ellipsis and select Copyfor the appropriate function in the Util BML Library Functions List page.
| Item | Description |
|---|---|
|
1 |
The function name. |
|
2 |
The function variable name. |
|
3 |
The category type the function script will return. For example, array, boolean, date, dictionary, math, etc. Refer to BML Functions List for category function links. |
|
4 |
The description of the function. |
|
5 |
Displays a complete list of the out-of-the-box functions. Refer to BML Functions List for a description of the functions. |
|
6 |
Manages the function properties and runs a test the function script. |
|
7 |
Validates the function script. |
|
8 |
The function script definition area. Refer to Script Definition and Syntax Colors. |
Script Definition and Syntax Colors
BML can be typed directly into the Script Definition Area. Save your changes after writing/editing the script.
The box on the left defines the position of the character based on its line and index. Character indexes begin with 0.
Administration
Create or Edit a Library Function
NOTES:
Library functions must be created before they can be added.
Util and Commerce Library functions cannot self-reference. Recursive calling of the same Util and Commerce Library functions will fail and result in a compilation error when called at any point in the reference chain. Util and Commerce Library functions will not appear in the Import list for themselves.
Note the function name and variable name of the copied function must be different from the existing function.
Custom Variable Name Conventions Oracle CPQ appends the "_c" suffix to custom variable names to provide more consistency for integrations with Oracle Sales.
Customers can submit a Service Request (SR) on My Oracle Support to disable the "_c" suffix on variable names for custom Commerce entities
- When the "_c" is disabled, the "_c" variable name suffix will not be required for newly created custom Commerce entities.
- Disabling the "_c" variable name suffix for custom Commerce entities will not change existing variable names.
- The "_c" suffix setting will not impact existing variable names when cloning a Commerce process or migrating Commerce items. Target variable names will be the same as the variable names from the source Commerce process.
-
Commerce Library functions can call other Commerce Library functions. Commerce Library functions can call Util Library functions.
-
Util Library functions can call other Util Library functions. Util Library functions cannot call Commerce Library functions.
Insert into editor to enter the standard function into the Function Script.




