You are here: Business Rules > Business Actions > Execute JavaScript > Object Aspects Binds

Object Aspects Binds

Business Actions and Business Conditions can use the following binds.

Bind Name

Description

Current Object

For more information, see the Current Object Bind section of the Business Rules documentation here.

ID

Bind resolves to the ID of current object (Java String). In this example, ID is bound to the variable 'id'. The code checks if the ID starts with an X.

if (id.charAt(0) == X) {
// Do something
}

Name

Bind resolves to the name of current object (Java String or null if no name).

In this example, 'Name' is bound to the variable 'name'. The code checks if there is a name.

if (name) {
// Do something
}

2017, Stibo Systems