Creating New Product Specifications Entities Using the Java Perspective

Product specifications are included in Design Studio for Inventory for backward compatibility with customized solutions that require mapping services to corresponding products.

If you require Design Studio for Inventory Product specifications for backward compatibility, and to create new Product specifications in your workspace, you can create the .product Design Studio entity in the Java perspective.

To create new Product specifications using the Java perspective:

  1. From the Java perspective, click the Package Explorer tab.

    The Package Explorer view appears.

  2. Navigate to the Inventory project where you want to create a new Product specification, and select the model folder.

  3. Right-click the model folder, then select New, and then select File.

    The New File dialog box appears.

  4. In the File Name field, enter a name for the file and include the .product extension.

    For example, name the file SampleProduct.product.

    The new file appears in the model folder in the Package Explorer view.

  5. Right-click the new file, select Open With, and then select Text Editor.

    The file opens in the Design Studio default text editor.

  6. Copy the following XML fragment into the file:

    <?xml version="1.0" encoding="UTF-8"?>
    <com:modelEntity 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns:com="http://www.mslv.com/studio/core/model/common" 
          xmlns:data="http://www.oracle.com/communications/studio/core/model/common/data" 
          xmlns:inv="http://www.mslv.com/studio/inventory/model/specification" 
          xmlns="http://www.mslv.com/studio/inventory/model/specification" 
          xsi:type="inv:ProductSpecificationType" 
          name="SampleProduct">
     
      <com:baseEntityRef>
        <com:entity>Product</com:entity>
        <com:entityType>inventoryEntity</com:entityType>
        <com:relationship>unknown</com:relationship>
      </com:baseEntityRef>
      
      <com:id>Wodf--+O--+fkI4A---+Fg</com:id>
     
      <data:dataElementNode virtual="true">
        <com:id>Wodf--+O--+fkI4A---+Fg</com:id>
        <com:elementType>oracle.communications.studio.model.data.StudioModelDataElement</com:elementType>
        <data:name>SampleProduct</data:name>
        <data:displayName lang="[default]">SampleProduct</data:displayName>
        <data:primitiveType>none</data:primitiveType>
      </data:dataElementNode>
     
      <data:dataElementDetails xsi:type="data:dataElementCommonDetail">
        <com:id>z+l27sgB--+0-mVX--+m1Q</com:id>
        <com:elementType>oracle.communications.studio.model.data.StudioModelDataElementCommonDetails</com:elementType>
        <data:dataElementId>Wodf--+O--+fkI4A---+Fg</data:dataElementId>
        <data:defaultValue></data:defaultValue>
        <data:deprecated>false</data:deprecated>
        <data:sensitive>false</data:sensitive>
        <data:minLength>0</data:minLength>
        <data:maxLength>40</data:maxLength>
        <data:minMultiplicity>0</data:minMultiplicity>
        <data:maxMultiplicity>-1</data:maxMultiplicity>
      </data:dataElementDetails>
    </com:modelEntity>
    
  7. Click Save.

  8. Switch to the Studio Design perspective.

  9. Click the Studio Projects tab.

    The Studio Projects view appears.

  10. Expand your Inventory project, then expand the Product Specifications folder.

    The Product specification that represents the new .product entity appears in the folder.

  11. Right-click the new Product specification, then select Copy.

  12. Right-click the Inventory project and then select Paste.

    The Set Name of Copy dialog box appears.

  13. Rename the copy of the Product specification to the desired name.

  14. Delete the original Product specification that you created in the Java perspective.

  15. Click Save.