Changes

Activity:GetObjectsFromNamedRelation (Activity)

1,882 bytes added, 19:18, 16 April 2014
Created page with "The GetObjectsFromNamedRelation activity returns a list of child objects and its [[RelationData|relation data]] via the name of an existing [[Relation|relation]] of a given pa..."
The GetObjectsFromNamedRelation activity returns a list of child objects and its [[RelationData|relation data]] via the name of an existing [[Relation|relation]] of a given parent object.

{{ActivityInfoBox
| title = Get Objects From Named Relation
| name = GetObjectsFromNamedRelation
| image =
| imagecaption = Activity GetObjectsFromNamedRelation
| purpose = Return child objects of parent object
| category = Relations
| returns = List of child objects
| version = 2.2.3
}}

==Arguments==

{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| Parent || RelationalObject || In || The parent object
|- align="left"
| RelationName || String|| In || The name of the relation to be searched for at the parent object
|- align="left"
| RelationData || UBIKClassList<RelationData>|| Out || The list of relation data objects
|- align="left"
| 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:


{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| Parent || <source lang = "vbnet">UBIKObject.Environment _
.GetSystemMetaClass(SystemObjects.METACLASS) _
.AllInstances("PUMP")</source>
|- align="left"
| RelationName || <source lang = "vbnet">"SYSREL_METAPROPERTY"</source>
|- align="left"
| Child || <source lang = "vbnet">UBIKObject.Environment _
.GetSystemMetaClass(SystemObjects.POOL_METAPROPERTY) _
.GetMetaProperty("NOMINALPOWER")</source>
|}

==See also==
* [[Workflow Designer]]
* [[RemoveFromNamedRelation (Activity)]]

[[Category:Workflows]] [[Category:Activities]]
10,686
edits