Previous Topic: Defining Attribute ViewsNext Topic: Analyzing Process Logic


Defining Group Views

The views for the Take Order Process do not completely show the structure of the data. In the original description of the Take Order process, it was clear that multiple products could be ordered on a single order. The import view must therefore allow for multiple occurrences of product for its Number and order item for Quantity. This is accomplished by using a repeating group view.

A group view is strictly defined as a collection of one or more entity views. A group view is the only kind of view that may be designated as repeating. So, any time a process imports or exports a list of entities, the list is included as a repeating group view.

To complete the views for Take Order, you must add a group view to which the entity views Import product and Import order item will belong.

The following tables show the finished views for Take Order. Notice that the letter "r" precedes the group view Import Product Information indicating a repeated group view.

Import Views

Take Order Process

view of
entity
attr

IMPORT
CUSTOMER
NAME

group (r)
view of
entity
attr

IMPORT PRODUCT INFORMATION
IMPORT
PRODUCT
NUMBER

view of
entity
attr

IMPORT
ORDER ITEM
QUANTITY

Export Views

Take Order Process

view of
entity
attr
attr
attr

EXPORT
ORDER
NUMBER
SHIP DATE
TOTAL VALUE

Entity Action Views

Take Order Process

view of
entity
attr
attr

(unnamed)
CUSTOMER
NAME
NUMBER

view of
entity
attr

(unnamed)
ORDER
NUMBER

view of
entity
attr
attr

(unnamed)
ORDER ITEM
QUANTITY
VALUE

view of
entity
attr
attr

(unnamed)
PRODUCT
NUMBER
PRICE

CA Gen can capture the following details about group views:

Group views may not appear in the entity action views for a process.

Name

Each group view name should accurately reflect its contents. Unlike entity view names, group view names always stand alone in the detailed process logic, so they should specify the role of their elements, for example, input, update, and output.

This explains the name Import Product Information in the table previous table rather than simply Product Information.

Description

In CA Gen, the description for a view of any kind is optional. It is necessary only when the purpose of the view is not clear from its name.

Cardinality

Cardinality indicates whether the group view repeats. The cardinality may be:

In practice, detailed process logic never needs to reference non-repeating group views. Instead, it references their entity views. The analyst and business person may, however, name a group of entity views to provide clear documentation about parts of the data that are used together.

For each repeating group view, you must also specify the following information that will be used in the design and construction of a system:

For minimum and maximum cardinality, you may indicate whether the value specified is an estimate—there will probably never be more than ten or an absolute limit—there must never be more than ten.

Optionality

You may specify optionality for import views only.

Group

View

Group
group
entity

GROUP VIEW 1
GROUP VIEW 2
ENTITY VIEW 3

Subscripting

Subscripting is the means by which a particular occurrence of an element of a repeating group view is identified by a statement in an Action Diagram.

Each repeating group view, that is, a group view with a cardinality of one or more, must be defined as either implicitly or explicitly subscripted.

In design, repeating group views are usually handled using implicit subscripting because this gives better control of selection within a group.

In analysis, implicit subscripting is sufficient for the handling of repeating group views.

A process must set values for explicit subscripts; only in very complex process logic is there a need for explicit subscripting. Subscripting can be changed to explicit during system design if necessary.