Changes
Created page with "The AssignedToNamedRelation activity assigns a child objec via the name of an existing [[Relation|relation]] to a given parent object. {{ActivityInfoBox | title = Assign To ..."
The AssignedToNamedRelation activity assigns a child objec via the name of an existing [[Relation|relation]] to a given parent object.
{{ActivityInfoBox
| title = Assign To Named Relation
| name = AssignToNamedRelation
| image =
| imagecaption = Activity AssignToNamedRelation
| purpose = Relate child object to parent object
| category = Object Primitives
| returns = True if successful
| version = 2.1.15+
}}
==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"
| Child || RelationalObject || In || The child to relate
|- align="left"
| RelationData|| RelationData || Out || The created relation data object, null if failed
|- align="left"
| Result|| Boolean|| Out || True if successful, false if failed
|}
==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 named NOMINALPOWER from the property pool and then add it to the MetaClasses' MetaProperties:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| Parent ||
|- align="left"
| RelationName || <source lang = "vbnet">"SYSREL_METAPROPERTY"</source>
|- align="left"
| Child ||
|}
==See also==
* [[Workflow Designer]]
* [[Activity RemoveFromNamedRelation]]
[[Category:Workflows]] [[Category:Activities]]
{{ActivityInfoBox
| title = Assign To Named Relation
| name = AssignToNamedRelation
| image =
| imagecaption = Activity AssignToNamedRelation
| purpose = Relate child object to parent object
| category = Object Primitives
| returns = True if successful
| version = 2.1.15+
}}
==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"
| Child || RelationalObject || In || The child to relate
|- align="left"
| RelationData|| RelationData || Out || The created relation data object, null if failed
|- align="left"
| Result|| Boolean|| Out || True if successful, false if failed
|}
==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 named NOMINALPOWER from the property pool and then add it to the MetaClasses' MetaProperties:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| Parent ||
|- align="left"
| RelationName || <source lang = "vbnet">"SYSREL_METAPROPERTY"</source>
|- align="left"
| Child ||
|}
==See also==
* [[Workflow Designer]]
* [[Activity RemoveFromNamedRelation]]
[[Category:Workflows]] [[Category:Activities]]