Import Your Smart Mastering Core Projects
- Last Updated: April 5, 2026
- 2 minute read
Import Your Smart Mastering Core Projects
If you used the Smart Mastering Core to define matching and merging rules for your data, you can import those rules as match and merge options into a mastering step in a Data Hub flow.
Procedure
-
Upgrade Smart Mastering Core to the latest 1.3.x version.
-
In your Smart Mastering Core build.gradle file, change the Smart Mastering Core version to
1.3.0. -
Run the Gradle task
mlDeploy.Unix systems
./gradlew mlDeploy -iWindows
gradlew.bat mlDeploy -i
See Smart Mastering Core's upgrade.md for potential compatibility issues.
-
-
Get your Smart Mastering Core options in JSON format.
Use the following REST endpoints to retrieve your Smart Mastering Core options:
- Match options:
/v1/resources/sm-match-options?rs:name=your-options-name - Merge options:
/v1/resources/sm-merge-options?rs:name=your-options-name
- Match options:
-
In Data Hub, create a project.
-
Create a flow.
-
Create a mastering step.
-
Manually edit your flow definition file to add your Smart Mastering options.
- In your flow definition file (your-project-root/flows/your-flow-name.flow.json), go to the
stepsnode, then the mastering step, then theoptionsproperty of that step. - Under the
optionsproperty, set the values of matchOptions and mergeOptions to the appropriate JSON that you retrieved from your Smart Mastering Core project.
Example:
- In your flow definition file (your-project-root/flows/your-flow-name.flow.json), go to the
{
"name" : "MyFlow",
...
"steps" : {
...
"3" : {
"name" : "MyMasteringStep",
"description" : "",
"options" : {
...
"mergeOptions" : {
*** Replace this value with the appropriate JSON from your Smart Mastering Core project. ***
},
"matchOptions" : {
*** Replace this value with the appropriate JSON from your Smart Mastering Core project. ***
},
"sourceCollection" : "MyMappingStep",
"targetDatabase" : "data-hub-FINAL"
},
...
"stepDefinitionName" : "default-mastering",
"stepDefinitionType" : "MASTERING"
},
...
}
}
-
Deploy your changes.
Unix systems
./gradlew mlDeploy -iWindows
gradlew.bat mlDeploy -i
See Also
Previous topic: Flow Definition File
Related information