Docs‎ > ‎API Creator‎ > ‎Specify your Business Rules‎ > ‎Reactive Logic‎ > ‎

Expression Help

Each Rule page that uses the JavaScript editor (e.g. Formula, Event, Early Event, Validation, etc) there is an Expression Help link at the bottom of the editor.  For the select resource (table) - there are two types of expression help, one for the object model (attributes) and one for the relationship links.

Row attribute selection

 This will insert the attribute name for the selected table at the insertion point in the JavaScript window using the row object (e.g. row.order_number).  You can also access the values currently stored on the database using oldRow.{attribute} - this is the value before changes occur on the row object.


Attributes via Parent Relationships

Parent Attributes via relationship roles can also be used to select parent (and grandparent) attributes. You can also select a parent object's attribute using the foreign key or virtual key relationship.


Restrict To

Events can be restricted to Insert, Update, and/or Delete.  The Asynchronous checkbox will ensure this event will run without blocking.


Asynchronous

If this option is checked, this action will execute asynchronously, independently of the current transaction. Whether it succeeds or fails will not affect the current transaction.
This can be helpful for things that may take a long time, such as making an external call, sending an email, etc...



ċ
Screen Shot 2015-10-30 at 10.17.44 AM.png
(41k)
Val Huber,
Feb 16, 2016, 2:13 PM
ċ
Screen Shot 2015-10-30 at 10.17.53 AM.png
(53k)
Val Huber,
Feb 16, 2016, 2:13 PM
ċ
Screen Shot 2015-10-30 at 10.18.07 AM.png
(66k)
Val Huber,
Feb 16, 2016, 2:13 PM
ċ
Screen Shot 2015-11-14 at 3.27.32 PM.png
(8k)
Val Huber,
Feb 16, 2016, 2:13 PM
Comments