Creating and Applying a Primitive Type

Primitive types are data types. Certain commonly-used data types - Text, Integer, Date, and so on - are delivered with the Business Object Modeler. You can define your own primitive types to add to the delivered types, in order to suit the specific requirements of your business.

In this task you create a primitive type, and use it to redefine the type of one of the existing attributes.

Procedure

  1. Add a third attribute called claimDescription to the existing Generic Claim class.

    You will apply your custom Type to this attribute.

  2. Select the Primitive Type tool on the palette and click in the business object model.
  3. Enter ExtendedText as the name of the primitive type.

    On the General tab of the Properties view, click .

    The Select Type dialog is displayed. You use this to select an existing data type on which to base your new type. For ExtendedText, you can leave this as the default Text.

  4. In the Properties view for the primitive type, click the Resource tab.
  5. Expand the Restrictions if it is not already expanded. Specify a Maximum Text Length of 2,000.

    This specifies that an attribute of this type can be up to 2,000 characters long, instead of the default length for the Text type which is 50.

    Note: If you see a warning icon in the diagram for the new primitive type, you can ignore it.
  6. Select the claimDescription attribute.

    On the General tab of the Properties view, click .

    The Select Type dialog is displayed. Your new ExtendedText type is now listed.

  7. Select ExtendedText and click OK to apply it to the attribute.

Result

For more information, see "Primitive Type" in the "Concepts" chapter of the TIBCO Business Studio Modeling User’s Guide.