Executing Job Groups
A Job Group is a container for individual Jobs that helps you manage their executions. Job Groups can be activated manually or as an object in a Workflow or in a Schedule.
No matter how a Group object is executed, they undergo the following checks and states:
- The Group is started.
- All objects in the group have the Registered status as long as the Group is not active.
- The Group is Active.
-
The number you have set in Max. Parallel Tasks comes now into effect.
-
1: tasks are started one after another.
The first task is selected according to the defined AE priority and FIFO and it is started. Its status is Active, the other tasks remain as Registered.
As soon as the first task is finished, the next one is stared and so on.
- x: the first X tasks are executed simultaneously and are therefore Active. The rest remain as Registered.
-
The execution of a Group is finished only after all the tasks in the group are also finished. If a task in the Group ends abnormally, the complete Group ends abnormally too.
As long as the execution of a Group is not finished, you can add additional objects to it, also if the Group is already active.
Suspending and Restarting the Execution of a Group
You can suspend the execution of a Group at any time. Registered tasks in the Group are also suspended. However, already active tasks cannot be suspended, they continue processing until they finish.
Resuming the execution of a Group is also possible. When you suspend a Job Group, its script (if available) is processed partially, starting where the last execution finished.
Suspend vs. Suspend (recursive)
If you want to stop processing a Group that contains Events or Workflows, you'd rather select Suspend (recursive). This suspends all Workflow and Event child tasks as well.
To Execute a Group
- Open the Process Assembly perspective and select the Group.
-
Do one of the following:
- Right-click and expand Execution Options. Select the desired option.
- Expand the Execute button on the toolbar and select the desired option.
To Suspend the Group Execution
- Open the Process Monitoring perspective and select the Group.
-
Right-click and do one of the following:
- Select Suspend (recursive) if it contains Workflows and Events and you want to suspend all child tasks.
- Select Suspend to stop the execution of the Group and its tasks. Child tasks are not affected.
To Resume the Group Execution
- Open the Process Monitoring perspective and select the Group.
-
Right-click and do one of the following:
- Select Resume (recursive) if it contains Workflows and Events and you want to suspend all child tasks.
- Select Resume to stop the execution of the Group and its tasks. Child tasks are not affected.
Canceling the Group Execution
There are also two ways to cancel a group:
- Cancel
The group switches to the Canceling status and waits until the active tasks end. The group ends when the corresponding tasks have finished. Scheduled tasks do not start and remain in the Tasks window.
- Cancel (recursive)
Both the group and all its active tasks are canceled immediately. Registered tasks remain in the Tasks Window with status Waiting.
To Cancel a Group
- Open the Process Monitoring perspective and select the Group.
- Right-click and select Cancel or Cancel (recursive).
See also: