![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
Business object model Diagram Nodes consist of Packages, Classes, Association Class, Primitive Types, Attributes and Operations.See http://java.sun.com/docs/codeconv/ for more information about these. These Java Programming Conventions are options under Preferences, so you can choose to disable them if you require. See Setting Diagram Preferences for more information.
Note also that you can open a new editor to edit only the contents of a selected package, for example if the main editor window is too crowded. See Opening a Diagram Editor for a Package.A Primitive Type is a data type. Defining a Primitive Type enables you to define your own data types and then specify how data of that type is interpreted. You can specify what values the data can have or any constraints on the data, for example. It enables you to refine your data to your specific business domain. You could create a Primitive Type called Patient ID and specify that Patient IDs should always be a maximum of 7 characters long, and consist of 2 letters followed by 5 numbers, for example. See Setting Restrictions on Primitive Types and Attributes for more information on the restrictions you can set.
You can change the standard type on which the Primitive Type is based by clicking on thebutton in the Superclass field, on the General tab in the Properties View. Additional information required by the Primitive Type is specified on the Advanced tab; see Setting Restrictions on Primitive Types and Attributes.
The Multiplicity field on the General tab of the Properties view for an Attribute indicates whether TIBCO Business Studio needs to allow for multiple copies of an Attribute. For example, a purchase order Class could allow for only one po_ number Attribute but multiple line_items Attributes.The lightbulb icon by the field indicates that content assistance is available. Press Ctrl+space to display a list of the possible values for the Multiplicity field.
Where n is greater than 1 0..n 1..n
1.
2. Expand the Restrictions.
An Operation allows you to specify the function of a Class. Defining an Operation enables you to request a Class to perform that function. If you have a Class called policy for example, you could create an Operation called createClaim to create a claim against this policy.
You can specify arguments and argument types for Operations. Arguments often add extra data that the operation needs. For example, the createClaim operation could specify the Doctor’s visit notes as a parameter.An Operation can also return a value after it has finished. You can show the value it returns and the value’s type. For example, the createClaim operation could return the Claim once it has completed.The example above shows the createClaim operation that has a parameter of VisitNotes and whose return value is the Claim.In the example below, a Primitive Type of the Decimal data type has been created. There is also an Enumeration called Analgesics, containing enumeration literals. You create a generalization from the Enumeration to the Primitive type. In this example, this would create an Analgesics enumeration with decimal literals.Generalizations of the following data types are not supported: Attachment, Boolean, Duration, ID, Object, URI.
For example, an Enumeration called Analgesics might contain literals listing the different analgesics that might be prescribed.So the Enumeration literal CODEINE requires a value in a decimal format:
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |