Automation Engine Script Guide > Ordered by Function > Activate Objects > SYS_STATE_JOBS_IN_GROUP

SYS_STATE_JOBS_IN_GROUP

Script Function: Returns the number of jobs that are registeredThis is the status of a task that runs within a group and is waiting for its start. in groups

Syntax

SYS_STATE_JOBS_IN_GROUP([Job], [Group])

Syntax

Description/Format

Job

Name of a jobAn Automation Engine object type for a process that runs on a target system.
Format: AE name, script literal or script variable

Group

Name of a groupAn Automation Engine object type that integrates tasks so that they can be processed together.
Format: scriptA particular Automation Engine object type. literal, objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task name or script variableA placeholder for a value within a script.


Return code

Number of jobs registered for groups

Comments

This functions retrieves the number of jobs which show the statusThis represents the condition of a task (such as active, blocked, generating). "Registered". The parameters may to used to selectively indicate a particular job or group whose number should be retrieved.

Example

The first example retrieves all registered jobs.

:SET &ACTIVE# = SYS_STATE_JOBS_IN_GROUP()

The second example supplies all jobs registered for the group "MM.GROUP".

:SET &AKTIV# = SYS_STATE_JOBS_IN_GROUP(,"MM.GROUP")

 

See also:

Script element Description
SYS_STATE_ACTIVE Checks if an object has already been activated

SYS_STATE_JOB_ACTIVE

Checks if a job has already been activated
SYS_STATE_JP_ACTIVE Checks if a workflowAn object of the Automation Engine that can include several executable objects and which runs them in a specified order. [Formerly called "ProcessFlow" and "JobPlan."] has already been activated

Script Elements - Activate Objects

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by function

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH