Business rules are units of business logic that are stored as objects in System Setup. Business rules are used for many different purposes in STEP and come in three variants:
|
|
Input |
Output |
Side effects allowed |
|---|---|---|---|
|
Business actions |
Current object, current event batch, etc. provided by the context in which the action is executed. For more on business actions, see the Business Actions topic here. |
None |
Yes |
|
Business conditions |
Current object, current event, etc. provided by the context in which the condition is evaluated. For more on business actions, see the Business Conditions topic here. |
Boolean result of evaluating the condition and a message for the user |
No |
|
Business functions |
Input parameters defined by the function and provided by the functionality evaluating the function. For more on business functions, see the Business Functions topic here. |
Result of evaluating the function |
No |
A fourth type of business rule, business library, allows users to define JavaScript library functions that can be called from other JavaScript-based business rules. For more information on business libraries, see Business Libraries topic documentation here.
For more information on differentiating between scenarios where one business rule is more useful than another, see the Business Rule Common Use Cases topic in the Business Rules documentation here.
The following set up is required to use business rules:
The following information is useful prior to creating and after a business rule is set up:
Maintain or modify local business rules as described Business Rules and Workflows
Export business rule definition for comparison purposes in an external source control system as described in Exporting Business Rule Definitions as Comments here.
2018, Stibo Systems – Confidential