Business rules can use any of the following Data Container binds.
Configuration
To use any bind:
Important: The example scripts should not be used as-is without thorough testing, including updating the script to match object and link types that exist on your system.
Each bind is defined in the sections below.
This bind is used in the 'Update Data Containers' Bulk Update operation, in the related JavaScript business conditions and actions. The selected data container is bound to the variable.

Condition
This JavaScript business condition is used to find entities with Data Containers that have an attribute 'City' with the value 'New York'.
var cityname = dc.getValue("City").getSimpleValue();
var fixedname = "New York";
if (cityname == fixedname) {
return true;
}
Action
This JavaScript business action is then used to manipulate specified attributes on the Data Containers found.
dc.getValue("Street").setSimpleValue("(" + dc.getValue("Street").getSimpleValue() + ")");
By comparing attribute values, the Data Container survivorship rules can determine whether the data container instances on the source records are the same as on the data container instances on the golden records.
If a check of individual attributes between the source and golden records is required to determine when the source record data container should overwrite the golden record data container, the Pair of Attribute Variables bind can be created for each attribute to be compared.
This bind is in the Public API under com.stibo.core.domain.value.simplevaluepair.
The selected attribute is bound to the variable.
In this example, the Variable Name is 'email', the Binds to field is Pair of Attribute values, and the Parameters field displays the Email attribute used on a Data Container. The following JavaScript is used in a JavaScript Business Condition on the Data Containers Trusted Source or Most Recent Survivorship Rules, and compares the attribute values on the source object and golden record:
var s1 = email.getValue1();
var s2 = email.getValue2();
if(s1==s2){return true;
}
else{return "Error"
}
For more information on survivorship rules for data containers, see the Golden Record Survivorship Rule Types topic in the Matching, Linking, and Merging documentation here.
2018, Stibo Systems