Background Job Types

Use

Using the background job monitor you can configure the archiving, deleting, restarting, and recovering jobs for PI messages.

Archiving Job

Used for archiving messages that have been processed successfully or edited. For more information on how to configure message archiving Advanced Adapter Engine, see: Configuring Message Archiving for the Advanced Adapter Engine

Message archiving allows you to archive message versions that have been saved during processing in the message store of the Advanced Adapter Engine. This includes as well asynchronous messages (saved with the staging function) and logged synchronous messages.

You require two archiving sessions to archive messages:

  • One session to write the messages to the archive

  • One session to delete the persisted messages that have been archived

A standard job (Default Version Archive Job) is automatically created for archiving messages edited with Message Editor. It runs once a day and ensures that messages that were edited are archived. Before you can use this job you must first activate it. You cannot define rules for this job.

To archive messages processed without being edited, you must create and schedule a separate archiving job, which then, in turn and implicitly, schedules the runs for writing the archives and for deleting the archived messages.

The archive job parameters are introduced and decribed in 2263432 Information published on SAP site and 2272241 Information published on SAP site.

  • Parameters

    • Exclude messages bigger than (KB) - integer

    • Omit additional versions - boolean
    • Omit audit log - boolean

Deleting Job

Used for deleting messages that are not to be archived.

A standard job for deleting is created automatically. It runs once a day. You can schedule additional delete jobs. However, you cannot define rules for them.

For jobs of this type you can define the NON-FINAL parameter. It determines whether the job should delete non-final log messages created for consumption by Business Process Management. When setting this parameter, enter a Boolean value, either true or false.

Delete Archive Job

Used for deleting archived messages and entries belonging to them from the XML DAS archive. For more information on how to configure message archiving for the Advanced Adapter Engine, see: Configuring Message Archiving for the Advanced Adapter Engine

The job deletes the message related archived objects (files) from the archive store and the corresponding tables of the XML DAS service schema.

You can schedule the job as the other Messaging System jobs in Start of the navigation pathPIMON Next navigation step Background Processing Next navigation step Adapter Engine JobsEnd of the navigation path. For more information, see: Performing Background Processing

  • Parameters

    The job has a single additional parameter specifying the time, how long the message should be kept in the archive since the creation of the message in the Messaging System. If the retention period defined is less than the message retention in the DB, the message will be deleted from the archive on the next job run.

Besides the job parameters, it is possible to define a set of rules based on the header attributes, to define which messages the job should delete from the archive.

Restarting Job

Used for restarting messages with errors.

Instead of restarting messages with errors manually in the message monitoring, you can schedule a job to restart these messages automatically. This is possible for all messages for which the number of defined restart attempts has been exceeded (messages with the system error status). For more information, see Monitoring Messages.

For jobs of this type you can define the following parameters and values:

  • MAX-RESTART determines the number of times the system should try to restart the messages. When setting this parameter, enter a positive integer number.

  • RESTART-BLACKLISTED determines whether this job should restart blacklisted messages or not. When setting this parameter, enter a Boolean value, either true or false . For more information, see Administrator Tasks for Blacklisting.

Recovering Job

Used for recovering lost messages.

A standard job to recover messages is created automatically. The job runs once a day and ensures that messages lost as a result of database failure, for example, are recovered. You can schedule additional recovering jobs.

Cancelling Job

Used for cancelling unfinished messages (for example, messages in the system error status).

Instead of cancelling unfinished messages manually in message monitoring, you can schedule a job to cancel these messages automatically. This is particular useful if there is a high number of messages to be cancelled.

The cancel job will move the messages to the Cancel status. This is a final status. That means the messages cannot be resent anymore and they will be removed from the system by the standard clean up mechanism as soon as possible (Deleting Job).
  • Parameters

    There are 4 message parameters available. They are all optional. Two parameters are used by default, whereas you can change the default values.

    1. Older than (hours): Default is 8760 hours, that is 1 year. This is related to the Sent timestamp of messages.
    2. Younger than (hours): This is related to the Sent timestamp of messages.
    3. Only simulate (no actual change of the messages): Default is active.

      This parameter determines messages that would be deleted. These messages will be displayed on the Logs tab.

      Use this parameter to simulate cancelling since after messages have been cancelled successfully they will definitely be deleted with the next Deleting Job. With that parameter you can also test the scope of the job, that is, whether you chose the rules and parameters properly.

    4. Process only messages with status. You can enter the following 4 status, separated by comma:
      1. TBDL (to be delivered): Messages are still in the queue and not processed yet.
      2. WAIT: Messages are scheduled for retry.
      3. HOLD: The predecessor message has not been processed yet.
      4. NDLV: (not delivered - corresponds to the system error status in message monitoring): This status is used by default if you do not enter any other status. Anyway you can use this status in combination with the other 3 status.
  • Logs
    The Logs tab shows important job information of running or carried out background jobs. For example:
    • Start time
    • End time
    • Number of processed messages for each job subtask
    This is useful particularly for simulation purposes of cancelling jobs as it shows the number of messages that would be cancelled if the job runs in non-simulation mode.

More Information

For more information about setting job parameters, see Scheduling Jobs .