Jump to: navigation, search

Difference between revisions of "Activity:GetObjectsFromNamedRelation (Activity)"


(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...")
 
Line 29: Line 29:
 
==Usage==
 
==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.
+
This activity is used to get a list of child objects of the parent object via the name. Optional the relation data is returned.
 
+
==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==
 
==See also==
 
* [[Workflow Designer]]
 
* [[Workflow Designer]]
* [[RemoveFromNamedRelation (Activity)]]
+
* [[GetObjectsFromSystemRelation (Activity)]]
  
 
[[Category:Workflows]] [[Category:Activities]]
 
[[Category:Workflows]] [[Category:Activities]]

Revision as of 19:20, 16 April 2014

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 get a list of child objects of the parent object via the name. Optional the relation data is returned.

See also