Creating recurring jobs for ION APIs

Two new recurring batch jobs must be created in LSF. One job calls the readinbox utility that checks the LSF IOBox database inbox table for User BODs and processes them. The second job calls the cleaninbox utility that removes successfully processed User BODs from the LSF IOBox database inbox table. You should create a token for each utility and then create a recurring job to run the newly created token. This guide assumes that you are an experienced LSF system administrator familiar with the tokendef, jobdef, and recdef utilities.

See the information about these utilities on the Infor Lawson Administration: Server Setup and Maintenance guide.

  1. In LID, create user tokens for the readinbox utility and cleaninbox utility using the information in the table:
    Utility readinbox cleaninbox
    Form ID Environment Form IDs Environment Form IDs
    Category SYSADMIN SYSADMIN
    Description Retrieve messages from the ION inbox Retrieve processed messages from the ION inbox
  2. Create two new jobs that run the newly created tokens.
    1. IONREAD to run the readinbox token.
    2. IONCLEAN to run the cleaninbox token.
  3. Define the newly created jobs as recurring using the parameters in the table:
    Recurring job name IONREAD IONCLEAN
    Queue ********** **********
    Frequency Half hour Daily
    Start Date Today's date Today's date
    Stop Date 12312099 12312099
    Run time 800 2300
    Grace Time 30 30
    If Late Next Next
    Next Run Date Leave blank Leave blank
    Last Run Date Leave blank Leave blank

    Output from these jobs is written to the LAWDIR/system/ion.log.

    You can define a new queue specifically for these jobs to run in depending on the volume of User BODs that are processing.