PURPOSE
This user guide offers detailed instructions for configuring batch process operators within SOFT4Leasing processes, such as "Invoicing Run" and "Run Contract Balance Calc." Each operator is configured to execute in a separate background session, enabling parallel workload processing.
SETUP
Batch Process Operators Setup
Configure Batch Process Operators for each Type. Each configured operator will run on a separate session in a background to parallelize workload.

Type - Specifies the type of batch process operator. The type determines the processing logic that will be executed for this operator. Each type is associated with a specific implementation of the "S4LA Batch Operator Processing" interface, which defines the processing behavior for that operator type.
Code - Specifies a unique code for the batch process operator. This code is used to identify and reference the operator within the system.
Status - Indicates the status of the batch process operator. The status reflects the operator's state in the processing workflow, such as whether it is ready, in process, or encountered an error.
By Session - Indicates which session is currently processing this batch operator
Last Runtime - Specifies the value of the Last Runtime of operator field.
Record Filter - Specifies a filter for the records that the batch process operator will process. This filter helps narrow down the set of records to be handled by the operator, based on specific criteria. I.e. filter contracts by Contract No. filter: C00001..C99999. Filter is created automatically when preparing operators for batch processing.
Process Date Filter - Specifies a date filter (manual input) for processing records. This filter determines which records will be processed based on their associated dates, allowing for targeted processing within a specific time frame. I.e. run "Invoicing Run" as of due date.
Next Process Date Formula - Defines the formula (manual input) used to calculate the next processing date when the current batch operation completes.
Job Queue Entries Setup
Set up report 17021249, titled "S4LA Batch Operators Run," to execute periodically via a job queue entry. When configuring the report parameters, ensure that you select the appropriate Operator Type.


PROCESS
When the configured Job Queue Entry runs, report 17021249 "S4LA Batch Operators Run" allocates records and launches a separate session for every configured operator. Job Queue Entry is running until all sessions are finished.
Operation results and errors are logged in the “S4LIB Activity Log” table.

DEVELOPMENT
To add new operator types, you need to extend Enum 17021348 "S4LA Operator Type" by adding a new option. Additionally, you must create an implementation Codeunit that implements the "S4LA Batch Operator Processing" interface.