1,172 bytes added,
14:20, 29 July 2013 {{ActivityInfoBox
| title = Get Objects By Query
| name = GetObjectsByQuery
| image =
| imagecaption = Activity GetObjectsByQuery
| purpose = Execute a query
| category = Object Primitives
| returns = The result of the query
| version = 2.1.15+
}}
The GetObjectsByQueryActivity executes an existing {{UBIK}} [[Query|query]].
==Arguments==
{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| Query|| Query|| In || The Query to execute
|- align="left"
| FirstMatch|| BaseClass || Out || The first object the query returned
|- align="left"
| Result|| List<BaseClass> || Out || The result of the query
|}
==Usage==
This activity is used to evaluate {{UBIK}} queries during the execution of a workflow.
==Example==
Load the Query named ''AllPumps'', and evaluate it:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| Query|| <source lang = "vbnet">UBIKObject.Environment _
.GetSystemMetaClass(SystemObjects.QUERY) _
.AllInstances("AllPumps")</source>
|}
==See also==
* [[Workflow Designer]]
* [[GetObjectsByPropertyValue(Activity)]]
[[Category:Workflows]] [[Category:Activities]]