Unused selects in SHTOLO

Rob Bodington rob.bodington at eurostep.com
Mon Oct 13 03:53:21 EDT 2003


Hi

Most extensible selects in the modules are used for the following
template.

You have a base extensible select that is referenced by a single
attribute in some relationship entity. This select is then extended with
entities in the relationship whenever the module is reused. These
extended selects are not really used other than to create a population
for the base select. i.e. there are no attributes with the select as the
corresponding types.

For example.

TYPE approval_item = EXTENSIBLE GENERIC_ENTITY SELECT;
END_TYPE; 

ENTITY Approval;
  status : Approval_status;
  purpose : STRING;
  planned_date : OPTIONAL date_or_date_time_select;
  actual_date : OPTIONAL date_or_date_time_select;
END_ENTITY;

The approval_item is then extended in a number of modules. E.g.

TYPE ap239_mri_approval_item = EXTENSIBLE GENERIC_ENTITY SELECT BASED_ON
approval_item WITH 
   (Contract_assignment, 
    Event, 
    Event_assignment, 
    Identification_assignment, 
    Project, 
    Project_assignment);
END_TYPE;

ap239_mri_approval_item is not really used anywhere - it simply there to
provide a population of approval_item.

The consequence of this is that a resulting long form has a number of
selects that are not really used at all - they are a side affect of the
process of populating the base select.

Consequently I was thinking that it would be a good idea if the tools
provide the option to the e2 to e1 SHTOLO to prune any extended select
that is not used by any attribute or other select.

What does everyone think?

Regards
Rob

-------------------------------------------
Rob Bodington
Eurostep Limited
Web Page:   http://www.eurostep.com http://www.share-a-space.com
Email:  Rob.Bodington at eurostep.com
Phone:  +44 (0)1454 270030
Mobile: +44 (0)7796 176 401
Fax:    +44 (0)1454 270031  






More information about the wg11 mailing list