ADD SCOPE-RELATIONSHIP [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL SDMAIN
ADD SCOPE-RELATIONSHIP
Allows a scope to have access to a relationship.
Syntax
A[DD] S[COPE-]R[ELATIONSHIP] scope-name
;R[ELATIONSHIP] = entity-name1
,entity-name2
[,entity-name3]
[,entity-name4]
[,entity-name5]
[,entity-name6]
;R[ELATIONSHIP-]T[YPE] = entity-type-name1
,entity-type-name2
[,entity-type-name3]
[,entity-type-name4]
[,entity-type-name5]
[,entity-type-name6]
[;R[ELATIONSHIP-]C[LASS] = relation-class-name]
[;S[COPE-]A[CCESS] = scope-access]
.
Parameters
scope-name Name of the scope given access to the relationship.
entity- name(N) Name of the entity involved in the relationship to
associate with the scope.
entity-type-name(N) Name of the entity type involved in the
relationship type.
relation-class-name Name of the relationship class.
scope-access The type of access the scope has to the
relationship. The two types of access that are
allowed are:
read The scope may only read the
relationship information.
modify The scope may modify the
relationship. Read access is
automatically assigned.
The default is read.
Description
Explicit access can be given only if it is not already allowed by the
sensitivity attribute of the relationship. In addition, the scope to be
given access must have sufficient capability. That is, at least read
capability to be allowed read access and at least create capability to be
allowed modify access.
Open Mode: Shared-update or exclusive-update
Scope: DA scope or the relationship's owner scope
Example
The following example allows the scope manufacturing to have modify
access to the relationship stockroom processes inventory of relationship
type module processes module.
>ADD SCOPE-RELATIONSHIP manufacturing;
>>RELATIONSHIP = stockroom,inventory;
>>RELATIONSHIP-TYPE = module,module;
>>RELATIONSHIP-CLASS = processes;
>>SCOPE-ACCESS = modify.
>
MPE/iX 5.0 Documentation