---
title: Automation
slug: citsmart-8-en/automation
description: Learn about batch processing functionality, including the registration of routines for use in system functions. Configuration of Quartz is necessary beforehand. This document outlines the procedure for accessing and creating batch routines, along with hel
docTags: 
createdAt: 2022-01-24T17:51:07.000Z
---

## Batch Processing

This functionality allows the <font color="#3b9f0f">**registration of batch processing routines**</font>, that can be later used in other system routines.

Routines like:

- Email verification
- Server time verification
- Automatic ticket distribution with workload balancing

## Before getting started

- [x] ****<font color="#3b9f0f">**CITSmart** </font>**Batch&#x20;**&#x70;rocessing uses Quartz for scheduling and processing system routines;
- [x] Therefore, before using any batch routine it is necessary to configure Quartz.

## Procedure

1. Access the functionality through the main menu `System > Batch Processing`;
2. Click on "**New**";
3. Complete the fields available (description, type \[Java class, RhinoScript,   &#x20;SQL]; status; a cron expression that defines the routine execution time and   &#x20;the context of the routine to be executed in the system);

Example of "**Class Java**" content:

```javascript
br.com.centralit.citcorpore.quartz.job.JobConfiguracaoAberturaAutomaticaViaEmail
```

4\. Click on "**Save**".

## Batch Routines

- Return server time
  - Type: RhinoScript
  - Content:
- Perform e-mail reading
  - Type: Java class
  - Content:

```javascript
br.com.centralit.citcorpore.quartz.job.JobConfiguracaoAberturaAutomaticaViaEmail
```

