Available for: Content Management Server, Template Engine
Task: Searches for jobs that meet all the conditions that have been specified as parameter-value-pairs.
Syntax:
job where {parameter value}
Function parameters:
-
parameteris one of the following identifiers:-
maxResultsspecifies thatvalueis a number that limits the number of hits. If number is less than or equals zero, the number of hits is unlimited. -
category: The jobs whosecategoryparameter equals the valuevaluewill be returned. -
comment: Returns the jobs whosecommentparameter contains the valuevalue. -
execLogin: Returns the jobs whose script will be executed under the login specified asvalue. -
isActive: Returns the jobs whoseisActiveparameter equalsvalue. -
isQueued: Ifvalueis not 0 then all jobs will be returned whosequeuePosvalue is greater than or equal to zero. Otherwise, all jobs with aqueuePosvalue less than zero are returned. -
name: The jobs whosenameparameter equals the valuevaluewill be returned. -
title: The jobs whosetitleparameter contains the valuevaluewill be returned.
-
-
valuecontains the value for the respective parameter.
Return value if successful: the list of the names of the matching job entries (stringlist).
Necessary permissions (CM only): no restrictions
Example:
CM>job where isActive 1 execLogin root rootJob1 rootJob2