Batch application: Reorganization of inspection orders

The article contains information about the purpose of the Reorganization of inspection orders application, how to use it and a description of its parameters.

Definitions of terms

  • Batch application – is an application that runs without user interaction. It can be opened by a processing task.
  • Reorganization – Reorganization of data results in its physical removal from the database. Deletion requires a series of successful checks. Reorganization also removes any business objects that depend on the data being deleted.
  • Reorganization applications – these are applications that run in the background. Reorganization applications are used to reorganize master data and transaction data according to specific criteria.
  • Reorganization order – is a processing request that calls only one or more reorganization applications

Application description

The Reorganization of Inspection Orders application is a background application. It allows you to delete inspection orders entered in the applications of the Quality Control module.

In order for data reorganization to take place, the objects to be deleted must be marked with a deletion marker. Once the reorganization has been carried out correctly, these items will be removed from the application.

The data that needs to be reorganized as a result of the application running in the background:

  • Inspection orders

The application running in the background must check all control orders and delete those that have a Delete Tag. The following conditions are required for successful data reorganization:

  • The control order is marked with a delete tag
  • The control order has a status of Completed or Cancelled

The system should check the status of control orders (e.g., whether they are completed or canceled). If any of the conditions are not met, the system will not delete the control order, and the corresponding message will be displayed in the message register.

The application is in the form of a dialog box, standard for background applications. It consists of Application and Settings tabs, divided into sections and further tabs.

Application tab

This tab contains fields identifying the application showing its name and development object. Two additional tabs are located here:

Action tab

Maximum running time – this is the maximum period of time after which the reorganization application will be terminated. The default value is ten minutes.

Export mode – this can be used to set whether and what to export for archiving. The following export modes can be selected:

  • No exports
  • Export all attributes
  • Export filter

This mode is only available if export is possible in the Data Export application. Export mode is only available if the reorganization application allows data archiving.

Destination folder – it is used to archive the reorganized data. Archiving takes place in a subfolder with the name of the OLTP database. Below this folder, another folder is created for each business unit, where the actual archive files are stored. The default value is the usr/archive subfolder in the file server path of the ERP application server.

Export filter – in the case of Export Filter export mode, you can enter the identifier of the export filter used for archiving in this field. The export filter can be entered in the Export Data application.

Note
This field is available only if the export of business objects to be reorganized is possible via the Data Export application.

Settings tab

The tab contains settings for background application processing

Processing order – the name of the processing order. The field can be completed manually. With this name in the Processing Orders application, it will be possible to find a specific order by name.

User – the ID of the user who orders the background action. The field automatically filled with the data of the logged-in user. The data can be changed manually or by using the [Value completion help] button on the right side of the line.

OLTP database – the OLTP database to which the user is logged in. The value can be edited by selecting the database from the drop-down list.

Content language – retrieved from the settings level the content language of the OLTP database on which background processes are executed. The values available for this field are in the drop-down list.

Processing queue (mandatory field) – the queue according to which the tasks scheduled in the system will be processed. Processing of a new file will begin when the previous file in the queue has been processed. The value in this field must be entered manually or by using the [Value completion help] button. You can also set the default processing queue in the User Settings application, in which case the Processing Queue field will fill in automatically.

Application server – the application server on which the background action is to be executed. The field can be completed using the [Value completion help] button.

Start – from the drop-down list, select the value that determines the start time of the reorganization Available values:

Move to queue – (default value) the reorganization order is added to the queue of executed actions

When restarting the application server – the reorganization will be performed when the server is restarted

Timing activation: externally – allows you to control the timing of background applications from within the operating system

Time activation: one time – allows you to define the duration of the application once using the fields: Start and Maximum duration

Time activation: serial – selecting this option activates additional fields:

  • Series error – responsible for displaying messages when an action order fails or encounters a problem
  • Start – the time when the background activity starts (date and time)
  • Maximum action time – allows you to specify the maximum time to perform an action
  • Notification after timeout – activates the presentation of a message when the time specified for background operation is exceeded
  • Serial pattern – allows you to define a template for background activities. When you press the field, the Serial Pattern window will open, where you can enter settings.
  • End – allows you to specify the end of the background runtime

Notification – a field that allows you to select from a drop-down list whether, how and in what situation notifications about the status of reorganization should be displayed. Available options:

  • Not
  • Through dialogue
  • Through dialogue, only in case of errors
  • Through the workflow
  • Through workflow, only in case of errors

Release immediately (parameter available and checked by default, if the Start field indicated the values Move to queue or While restarting the application) – the parameter causes the reorganization to start immediately. If the parameter is not checked, the processing order must be released using the Processing Order application, otherwise the process will not continue.

To start the reorganization, select the [Background] button after defining the processing settings.

Czy ten artykuł był pomocny?