Import Rules and Terms from an SAP Information Steward File

Import from a file when you don't have an SAP Information Steward connection.

Context

Before importing rules and terms, you must go to SAP Information Steward and export the rules into a ZIP file. Information Steward provides two exporting options:
  • Project: Exports both rules and bindings from Information Steward into rulebooks in Metadata Explorer. We recommend using this option.

  • Rules to file: Exports rules only. A rulebook is not created in Metadata Explorer.

If you want to use SAP Information Steward custom attributes, you must export them into a ZIP file as well. Custom attributes are user-defined settings in the glossary. When imported into Metadata Explorer, you can define and edit the custom attributes in the glossary and the rules.

See the SAP Information Steward User Guide for details about exporting these files.

When you import rules from Information Steward, you get all of the approved, unapproved, and invalid rules in the project.

After the rules are imported into rulebooks, you'll bind them to a dataset if they are not already bound. If the connection names are the same, then the rules carry over the binding.

If you see an error in your rulebook, it's likely that the rule is not bound to a dataset. Another reason could be that the connection is not available in SAP Data Intelligence. You can either correct the connections in this product, or in Information Steward. If you fix them in Information Steward, you'll need to import the rules again. We recommend that you delete the rules and rulebooks in the initial import before reimporting the next time. If you do not delete the rules and rulebooks, you'll see duplicates with a suffix of _1 for each rule and rulebooks. We recommend that connections with the same name as Information Steward are created in SAP Data Intelligence. When the connection names are the same, then the rule bindings are imported with the rules.

Procedure

  1. From the Metadata Explorer navigation menu, choose Start of the navigation pathRules Next navigation step View RulesEnd of the navigation path.
  2. Click Import.

    The Import dialog opens on the Recent tab, showing the previously imported rules, if any.

  3. Click the From File tab.
  4. Enter a name. This name is a prefix to any rulebooks that are created during the import based on SAP Information Steward bindings.
  5. Click Browse and select a ZIP file to import. Click Open.
  6. (Optional.) If you chose the Project option in SAP Information Steward when exporting, make sure that Create rulebooks based on imported bindings is enabled to create rulebooks. The rulebooks have the name entered previously as a prefix.
  7. (Optional) Select Import custom attributes to include any defined custom attributes in the glossary such as governance options. Select this option if you have linked custom attributes to rules in Information Steward and want to import the attribute values that are related to the imported terms.
  8. Click Browse to navigate to the SAP Information Steward custom attribute file. Select it and click Open.
  9. Click Import. You can view the status of the import here or on the Monitoring page.
  10. To close the Import dialog, click Close.
  11. After the rules are successfully imported, check the imported rulebooks by clicking the Metadata Explorer navigation menu and choosing Start of the navigation pathRules Next navigation step View RulebooksEnd of the navigation path.
  12. Choose the imported rulebook and expand the rules.
  13. To make the rules valid, you must bind the rule to a connection. Click View Rule Bindings. Any invalid rule bindings must be fixed before you can run the rulebook.
  14. Click Edit.
  15. In the Qualified Name option, click and choose a dataset. Click OK.
  16. If the dataset doesn't have the same column name as defined in the rule, then map the rule to an existing column.
  17. Click Save.

Results

The glossary with the term template is imported, and a term with its custom attributes is created for each rule. There can also be one or more rulebooks that contain rules.

You can see a new glossary was created by going to the Metadata Explorer navigation menu, choose Start of the navigation pathGlossary Next navigation step View Business GlossariesEnd of the navigation path.

On the Recent tab of the Import dialog, you can view the imported rules after it is done importing. Click the import task name and then click Active Rules or Inactive Rules to view the category, rule name, rule status, and term status. Each rule and a term are linked together. Click the rule name to edit the rule. Click the term name to view or edit the term in the glossary.

Click the Rulebooks tab to view the names of the rulebooks created during the import. You can see the number of rules in each rulebook. Click the rulebook name to open the rulebook.

Click the Connections tab to view the connection names.

Click the Details tab to view general information about the rule import, including the number of rules, rulebooks, glossary terms and categories, as well as the runtime and status.

If you'd like to export the data that you see on the tabs of this import task into a JSON file, click Export Data.