# Advanced Jobs

Advanced Jobs are like mini-applications made for specific tasks. They allow OE\_ADMIN users to manage a feature's behavior using advanced algorithms, exceeding the capabilities of regular processes. Designed for complex needs, advanced jobs tackle unique and challenging problems.

For instance, Primary Key and Foreign Key relationships on tables from remote data sources are automatically displayed when crawling. Advanced jobs, each with a distinct purpose, have been developed:

* **Get Relationships with Column Names:** This job constructs relationships by matching column names.
* **Discover Primary and Foreign Key Recommendations Auto:** This feature is used to identify all primary and foreign keys by applying the formula 'Row Count of a table = Distinct count of a table column.'
* **Discover Relationships Automatically:** This job builds relationships automatically by mapping data, utilizing profiling statistics within the provided data source and schemas.
* **Project Level Relationships Building:** It constructs relationships for a specified project name, consisting of tables.

## Access Advanced Jobs

Administrators and authorized users/roles can access the Advanced Jobs by navigating to the Administration module from the left panel menu. The List View displays the list of advanced jobs.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXddfmmC_lxY_KRFKL8ocW6lqRkfcHMSGE-SP0YdOfYwn_CV9ihjS6hBjsYeJm3XToZFdF2X-RA75wXPiaX-8jQ3KMO3BIF05aK4s3sr-IGtDCq_g2xQhHWpM4Wcv6voSMxRhFb1?key=hbiyuWq7AB3XPsEJtP3aSg" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
All Advanced Jobs displays a list of advanced jobs within the application. Migration Advanced Jobs specifically lists migration-related jobs based on the selected "from" and "to" versions.
{% endhint %}

### List View

The table below provides details about each Advanced Job.

| Field Name       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Id               | It displays the unique ID for each Advanced Job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Name             | It displays the name of the Advanced Job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Type             | It displays the type of the Advanced Job, which can also be considered a key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Class            | It displays the Java class of the Advanced Job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Help             | It helps users understand the purpose of Advanced Jobs and the attributes needed to run it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Attribute1       | To input the attributes required to execute the advanced job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Attribute2       | To input the attributes required to execute the advanced job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Attribute3       | To input the attributes required to execute the advanced job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Attribute4       | To input the attributes required to execute the advanced job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Attribute5       | To input the attributes required to execute the advanced job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Job Status       | <p>It displays the status of the Advanced Job, with states including:</p><p><br></p><p>RUNNING: Jobs are being processed in the submitted order.</p><p>WAITING: A submitted job is in the queue, awaiting execution.</p><p>SUCCESS: The invoked job has been completed successfully.</p><p>PARTIAL SUCCESS: The submitted job has been executed partially, and the entire job could not be completed.</p><p>ERROR: The job has failed; users can check the error message in the logs.</p><p>INIT: A job has been initiated.</p><p>KILLED: The task is aborted, and the execution of the job is stopped.</p> |
| Last Run Date    | It displays the Date and timestamp on which the advanced job was last run.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Last Run By      | It displays the user who last executed the job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Authorized Roles | It displays all the roles that are authorized to run a particular job. The admin can configure roles to be added or removed using the edit icon provided in the corresponding fields.                                                                                                                                                                                                                                                                                                                                                                                                                       |

### Run Advanced Jobs

OE\_ADMIN or Authorized Roles can execute an Advanced Job by selecting the checkbox against the corresponding advanced job and then clicking on the ‘Run Advanced Job’ button available in the top right corner of the screen. Users can also trigger multiple Advanced Jobs simultaneously.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeXPSr6eonJfqlN6TljbfIqwmtprMONWksBIRSdFyf2vMRN-O5TISqMvwr1jydzfs3tD2NCnpvW_NOVRhfQvdkryNJde_zm9x5VdF-NWYkUz5eSd9pJKJPlsXAagufmJg4MUqxNLA?key=hbiyuWq7AB3XPsEJtP3aSg" alt=""><figcaption></figcaption></figure>

### Add Advanced Jobs

Administrators can register new Advanced Jobs by utilizing the 'New Advanced Job' option in the Nine Dots. Upon selecting the option, a pop-up window prompts administrators to provide the following details: Name, Type, Class, and Help.&#x20;

Upon selecting the 'Add' button, the new Advanced Job will be registered for the new Advanced Job module. OvalEdge will then assist users in building the Advanced Job.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdxxv5jUPPywmt2g_OdSzqOw0h8ZGD7QlAdqbYtQ1KL_oOhu1FU-nI257Ja-wq4fCRg044LuFx9etrmTRZ3iayPu52mcOXDFPTtB_Arw9LcI9vJ-8OGVuQlGa3G24Lv66Mxw-dqKA?key=hbiyuWq7AB3XPsEJtP3aSg" alt=""><figcaption></figcaption></figure>

### Delete Advanced Jobs

Authorized Roles can delete an Advanced Job by selecting the job and then clicking on the ‘Delete Advance Job’ option in the 9 Dots. They can also delete multiple Advanced Jobs simultaneously.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcWXPDsp7UmNbKFISXxeMckzI70ZMHbIx2lZXQVnK3cz3uPdZ4IBZVZLhHY1IARfd2IL95mvMi-XVgGhOJsptei-QmUoBZgfHNnSK-9-8ltDHRkgs_3Pfk49ETQO6WTiwouklYxKA?key=hbiyuWq7AB3XPsEJtP3aSg" alt=""><figcaption></figcaption></figure>
