Executing Job Groups
Groups can be activated manually or as an object in a Workflow or in a Schedule.
No matter how a Group object is executed, these are the checks that are performed and the states the tasks within it undergo:
- The Group is started.
- All objects in the group are then in Registered status. They remain so 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/Restarting the Execution of a Group
You can suspend the execution of a Group at any time. Registered tasks in the Group are also supended. However, already active tasks cannot be suspended; they continue processing until they finish.
Restarting a Group is also possible; when you do so, the Group 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 select one of the execute options.
- Click the Execute button on the toolbar or expand it to display the execution options and select one.
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 Restart 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.
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: