Jump to: navigation, search

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


 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
The GetObjectsByQueryActivity executes an existing {{UBIK}} [[Query|query]].
 +
 +
=Description=
 
{{ActivityInfoBox
 
{{ActivityInfoBox
 
| title = Get Objects By Query
 
| title = Get Objects By Query
Line 9: Line 12:
 
| version = 2.1.15+
 
| version = 2.1.15+
 
}}
 
}}
The GetObjectsByQueryActivity executes an existing {{UBIK}} [[Query|query]].
 
 
 
 
==Arguments==
 
  
 +
===Arguments===
 
{| class="wikitable sortable" | width = "50%"
 
{| class="wikitable sortable" | width = "50%"
 
|-
 
|-
 
! Argument !! Type !! Direction !! Purpose  
 
! Argument !! Type !! Direction !! Purpose  
 
|- align="left"
 
|- align="left"
| Query|| Query|| In || The Query to execute
+
| Query|| [[Query]]|| In || The Query to execute
 
|- align="left"
 
|- align="left"
| FirstMatch|| BaseClass || Out || The first object the query returned
+
| FirstMatch|| [[BaseClass]] || Out || The first object the query returned
 
|- align="left"
 
|- align="left"
| Result|| List<BaseClass> || Out || The result of the query
+
| Result|| List<[[BaseClass]]> || Out || The result of the query
 
|}
 
|}
  
==Usage==
+
===Usage===
 
+
 
This activity is used to evaluate {{UBIK}} queries during the execution of a workflow.
 
This activity is used to evaluate {{UBIK}} queries during the execution of a workflow.
  
==Example==
+
=Example=
 
Load the Query named ''AllPumps'', and evaluate it:
 
Load the Query named ''AllPumps'', and evaluate it:
 
  
 
{| class="wikitable" | width = "50%"
 
{| class="wikitable" | width = "50%"
Line 42: Line 39:
 
.AllInstances("AllPumps")</source>
 
.AllInstances("AllPumps")</source>
 
|}
 
|}
 +
 +
<!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS -->
  
 
==See also==
 
==See also==
 
* [[Workflow Designer]]
 
* [[Workflow Designer]]
* [[GetObjectsByPropertyValue(Activity)]]
+
* [[Activity:GetObjectsByPropertyValue (Activity)]]
  
[[Category:Workflows]] [[Category:Activities]]
+
[[Category:Activities]]

Latest revision as of 09:59, 4 November 2015

The GetObjectsByQueryActivity executes an existing UBIK® Query.

[edit]

Description

Get Objects By Query
Name GetObjectsByQuery
Purpose Execute a query
Category Object Primitives
Returns The result of the query
Version 2.1.15+

Arguments

Argument Type Direction Purpose
Query Query In The Query to execute
FirstMatch BaseClass Out The first object the query returned
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:

Argument Value
Query
UBIKObject.Environment _
.GetSystemMetaClass(SystemObjects.QUERY) _
.AllInstances("AllPumps")


See also