Creating primary specs
You can create primary specs to create a template or basic structure for creating the catalogs (items) and categories (hierarchies). For example, you would need a primary spec to create a catalog of electronics items. Similarly, you would need a primary spec to create a hierarchy of electronic items such as computer peripherals and home appliances.
Before you begin
When defining primary keys in specs of type String, ensure to limit the character length to 300. It is possible to enter primary keys with a String length of more than 300 characters, however, only the first 300 characters will be used for uniqueness enforcement of an item within a catalog.
Procedure
Create a spec with any of the following methods: User interface, Java™ API, or Script API. When you
create a primary spec, you need to set a primary key.
Option | Description |
---|---|
User interface |
|
Java API | The following sample code creates a primary spec.
|
Script API | The following sample script API creates a primary spec named
My Primary Spec with three nodes.
|
The primary spec is created. Users can view it in the Specs
Console.