Last modified on 16 April 2014, at 19:18

GetObjectsFromNamedRelation (Activity)

Revision as of 19:18, 16 April 2014 by KNO (Talk | contribs) (Created page with "The GetObjectsFromNamedRelation activity returns a list of child objects and its relation data via the name of an existing Relation of a given pa...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The GetObjectsFromNamedRelation activity returns a list of child objects and its relation data via the name of an existing Relation of a given parent object.

Get Objects From Named Relation
Name GetObjectsFromNamedRelation
Purpose Return child objects of parent object
Category Relations
Returns List of child objects
Version 2.2.3

Arguments

Argument Type Direction Purpose
Parent RelationalObject In The parent object
RelationName String In The name of the relation to be searched for at the parent object
RelationData UBIKClassList<RelationData> Out The list of relation data objects
Result UBIKClassList<Relationalobject> Out The list of child objects

Usage

This activity is used to find a certain relation at the parent object via the name and then relate the child object to it.

Example

Load the MetaClass named PUMP, also load the MetaProperty NOMINALPOWER from the property pool and then add it to the MetaClasses' properties:


Argument Value
Parent
UBIKObject.Environment _
.GetSystemMetaClass(SystemObjects.METACLASS) _
.AllInstances("PUMP")
RelationName
"SYSREL_METAPROPERTY"
Child
UBIKObject.Environment _
.GetSystemMetaClass(SystemObjects.POOL_METAPROPERTY) _
.GetMetaProperty("NOMINALPOWER")

See also