Business Rules in an Import Configuration

Business rules can be applied during the import process, enabling validation of data while it is being imported. Business actions allow changes to data during import, and can cause other changes as well.

Conditions can be used to reject object creations and modifications to existing objects. Conditions are tested against data as it would appear in STEP assuming the import succeeded. Thus, the test is not limited to data in the import file.

Actions will only be executed during import if all conditions evaluate to true or a warning is reported. Thus, contrary to the approval process described in the Business Rules on Approval section (here), actions cannot make changes that make the conditions become true.

The business rules available depend on your system setup. New business rules must be created in System Setup, which also shows if a business rule is used by an import configuration. If a business rule is used by an import configuration, you cannot delete the rule.

To determine if a business rule is used in an Import Configuration:

  1. In System Setup, expand the Business Rules node.
  2. Select the relevant business rule, and click the Usage tab.

Add a Business Rule to an Import

Business rules can be added with the inbound data tools: Import Manager and IIEPs.

Import Manager

Business rules are configured on the Select Business Rules step of the Import Manager wizard. For more information, see Import Manager - Select Business Rules topic in the Data Exchange documentation here.

The saved import configuration includes any selected business rules. For more information, see Maintaining a Saved Import Configuration topic in the Data Exchange documentation here.

IIEP

Business rules are configured for the STEP Importer processing engine, on the Select Business Rules step of the IIEP wizard. The selected business rules can be modified by editing the IIEP configuration. For more information, see IIEP - Configure Processing Engine topic in the Data Exchange documentation here.

Applying Business Rules

Business rules can be applied to products, classifications, entities, and assets. If business rules are applied to other object types, the rules are not evaluated.

The order of business rule execution for each imported object is first conditions without 'Warn only' enabled, then conditions with 'Warn only' enabled, and finally actions.

Note: Objects are always validated, even if they are unchanged, to prevent Actions from running. The business rule itself can react on whether the object is detected as unchanged by the Import (e.g., to avoid rejecting unchanged data). Conditions cannot access the object as it was created prior to the import change.

For performance reasons, the Import Manager sometimes evaluates the same business rule twice for the same object.

Detecting Changes

JavaScript business rules access the imported objects using the 'Current Object' bind and the special 'Import Change Info.'

For each object, the import process detects if there are any changes. This information is provided to the business rules, and the business rules react based on this information.

In JavaScript the 'changeInfo' object contains two members:

Business Rule Limitations