Usage > Batch server > Groups of tasks 

A group of tasks is a list of batch tasks that are :

  • launched at the same time (either by submission of the group or by recurring task)
  • executed sequentially in time (each task is executed once the previous task is complete) with a log file created for each.
  • linked on the condition that the previous task is completed without error.

Their definition is carried out simply by placing a list of tasks in a grid.

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Presentation

The definition of a group of tasks is made on a single tab on which the tasks to launch and general information are to be assigned (module, time constraint, execution minimum level).

Close

 

Fields

The following fields are present on this tab :

Block number 1

A task group permits the bringing together of several tasks that should be executed in order, one after the other.

  • Description (field ZDES)

Title associated to the previous code.

Characteristics

  • Active (field ENAFLG)

Select this check box to activate the current record.

Disabled records keep their content and setup but cannot be used (by recalling their code) on other records (documents, settings ...), or for mass processes.

The authorizations to a given function can prohibit the creation of an active record. In this case, the check box is disabled by default. It can only be modified by an authorized user or through a signature Workflow.

  • Module (field MODULE)

[object Object]

  • Authorization level (field NIVEAU)

The level will be compared with the access level of each user who attempts to launch this task. It will be refused if the user level is insufficient.

The time constraint code is used to identify the time slots during which the task groups can be launched.

  • Proceed if error (field CNTERR)

When it is checked, this box is used to ignore an error in a batch task in order to:

  • launch the following task when performing several tasks
  • Re-perform the task when it is launched in a repetitive way with a given frequency.

If it is not checked, in case of an error in a task, the following tasks will be "Aborted".
The errors that can interrupt a task are the following:

  • - GOK variable different from 1: usually indicates that there is an update transaction error in the database update.
  • GERRBATCH variable superior to 100: this variable, that can be setup in the processing that performs the task, is used by the developer to distinguish minor from major errors.
  • GERREUR variable different from 0: in some processings, this variable is set in an error management sub-program generated by the "Onerrgo" instruction. In this case this is an exception returned by the engine (for example: non-existent variable or division by zero)

Grid Tasks

  • Sequence (field SEQ)

 

A "batch" task is a program that can be executed by the server periodically or at the request of a user.

Close

 

Specific Buttons

Error messages

In addition to the generic error messages, the following messages can appear during the entry :

Incorrect task code

The task in question could not be launched via a recurring task (it is a task that could not be standardized for functioning in Web mode: the rare tasks of this type are recognizable as no function is associated with them).

Tables used

SEEREFERTTO Refer to documentation Implementation