This example uses a common where statement to search for activities whose activity name is
'End'. The second example compares directory service entries to two conditions set
in the method. The participant must be named 'Robert' AND must belong to the
'Documentation' Organizational Unit to be considered a match.
//common where
for each ad in activitydefinition
where activityname = "End"
do
display "This process has an End activity: " + ad.cn
end
//Operand equivalence and
for each hp in humanparticipant
where hp.ou = "Documentation" and hp.cn = "Robert"
do
display "The participant: " + hp.cn
end