---
title: Automation
slug: en/automation
description: Learn how to utilize batch processing functionality in your system routines with this comprehensive document. Discover the importance of configuring Quartz before employing batch routines and gain insights on accessing and creating them. Explore practical
docTags: 
createdAt: 2021-10-27T01:10:09.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.

These Routines include:

- E-mail 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
```

