# Job starters

**New job from a starter…** makes a whole job for a common task in one step: its tasks with their settings, the lines between them, the schedule, and a mail for failures where one belongs. You give the folders and addresses in the dialog, or later in the tasks, and turn the job on when it is ready.

![New job from a starter: the groups on the left, the starters, and the picked one's steps, schedule and fields on the right](Jobs-Starters/dialog.png)

## Making a job from a starter

1. In the [job list](Jobs-List.md), open the folder the job belongs in.
2. **New**, then **New job from a starter…**. The same entry is in the list's right-click menu, and **New job from a starter** in the search box at the top.
3. Pick a starter. The right side says what it does, its **Steps**, when it **Runs**, and what is left **After it is made**.
4. Under **Fill in now**, type your folders and addresses over the examples, or leave the examples and change them in the tasks later. Folders are written as addresses with two slashes: `file://data/in/`, `sftp://user@host/path/`.
5. Check **Job name** and press **Create job**.

The job opens in [the designer](Jobs-Designer.md) with its [Setup](Jobs-Schedules.md) beside it, scrolled to its note.

![A job made from a starter: Setup open at its note, which lists what is left to do](Jobs-Starters/made.png)

| What the job has | Why |
|---|---|
| **Job enabled** off, for a starter with a schedule | the schedule is set, but nothing runs on it until you tick **Job enabled**. **Run** by hand works at once. |
| a **Note** in Setup | "Made from the starter …", then **To finish:** with what is left to do |
| **Notes** on some tasks | what to set in that task: a password, a key, a folder |
| all fields of every task | each task is made as **New Task** makes it, with the starter's settings over it |

## The starters

### Move files

| Starter | Runs | What it does | Tasks |
|---|---|---|---|
| **Move files from one folder to another** | every 5 minutes | moves the files that arrived in a folder to another folder | MakeDirectory, Find, Move |
| **Copy the day's new files** | daily, 6:30 PM | copies the files changed in the last day; the originals stay | MakeDirectory, Find (**Last modified** newer than 1 day), Copy |
| **Deliver each file to three places** | every 15 minutes | every file goes to an archive, a partner and an application at the same time; then one mail reports and the originals are removed | Find, Jump "Any files?", [Branch](Task-Branch.md) with three dots, three Copy, [Wait / Joiner](Task-Wait.md), Email, Delete |
| **Sort files by their kind** | every 5 minutes | PDF files to one folder, everything else to another | two MakeDirectory, Find, [Jump](Task-Jump.md) "PDF?", two Move |

![The job Deliver each file to three places makes: a Find, the Jump "Any files?", a Branch to three Copy tasks side by side, the joiner, the report and the Delete](Jobs-Starters/canvas.png)

### Partners

| Starter | Runs | What it does | Tasks |
|---|---|---|---|
| **Fetch files from a partner's SFTP server** | daily, 2:00 AM | takes the files a partner leaves on their server, files them in a folder per day (`…/2026/12/02/`), and removes them there | MakeDirectory, Find at the partner, Copy, Delete at the partner; Email **Default Failure** |
| **Send files to a partner's SFTP server** | every 15 minutes | sends what is in an outbox to the partner, then moves it to a sent folder per day | MakeDirectory, Find, Copy to the partner, Move to Sent; Email **Default Failure** |

### Security

| Starter | Runs | What it does | Tasks |
|---|---|---|---|
| **Encrypt with PGP and send** | every 15 minutes | encrypts the files of an outbox with the partner's public key, sends them, and removes the encrypted copies | Find, [PGP](Task-PGP.md) encrypt, Copy to the partner, Delete; Email **Default Failure** |
| **Decrypt what users upload** | when a user uploads | decrypts uploaded `.pgp` files with your private key and copies them where an application reads them; other files are copied as they are | MakeDirectory, PGP decrypt, Copy |
| **Scan files before they are released** | every 5 minutes | scans the files of a quarantine folder and moves the clean ones to a release folder; refused files stay in quarantine | MakeDirectory, Find, [MalwareScan](Task-MalwareScan.md), Move |

### Housekeeping

| Starter | Runs | What it does | Tasks |
|---|---|---|---|
| **Delete files older than 90 days** | daily, 1:00 AM | deletes the files of a folder, 20 folders deep, last changed more than 90 days ago; the folders stay | Find (**Last modified** older than 90 days), Delete |
| **Zip last month's reports and mail them** | monthly, on the 1st, 7:00 AM | zips the files of last month's folder (`…/reports/2026-11/`) and mails the zip | MakeDirectory, Find, Zip, Email |
| **Keep a list of what arrived** | when a user uploads | adds a line per file to a list of your own: the time, the user, the name, the size | MakeDirectory, [WriteFile](Task-WriteFile.md) |

### Integrate

| Starter | Runs | What it does | Tasks |
|---|---|---|---|
| **Tell an API about each new file** | every 5 minutes | calls a web API once per file with its name and size as JSON, then moves the file to a done folder | MakeDirectory, Find, [HTTP](Task-HTTP.md) POST, Move |
| **Mail the files that arrived** | every 15 minutes | mails the files of a folder as attachments, then moves them to a sent folder | MakeDirectory, Find, Jump "Any files?", Email, Move |

## What the starters have in common

- **A quiet run is a good run.** Every scheduled Find has **Fail if no files are found** off, so a run with nothing to do is not marked as failed. The one exception is **Zip last month's reports**: a month without reports should be noticed.
- **Nothing is mailed about nothing.** An Email task sends its mail even when the list is empty, so the starters that mail a summary have a Jump "Any files?" (`{items_count}` greater than `0`) after the Find; a run that found nothing ends there.
- **Folders are made.** A Copy or Move does not make the folder it writes into, so the starters begin with a MakeDirectory for the local folders they write to; the folder per day of the partner starters is made the same way. The exception is **Deliver each file to three places**: its three destinations are yours to set, and their tasks' notes say the folders must exist.
- **No half files at the partner.** A Copy to another server writes `name.part` and renames it when it is complete (**Temp name while in transit**), so nothing there picks up half a file.
- **Delete and Move after a Copy** act on the originals: a Copy hands on the files it copied, at their old place. See [Examples](Jobs-Examples.md#2-fetch-from-a-partner-every-night).
- **Failures are mailed** in **Fetch files from a partner's SFTP server**, **Send files to a partner's SFTP server** and **Encrypt with PGP and send**: the Email task named **Default Failure** has no line into it, and every failure of the job leads there ([When a job fails](Jobs-Failures.md)). Its subject is `{scheduleName} failed at {task_error_name}` and its body `{task_error}`.
- **Mail from** is asked by every starter that sends mail. A job's Email task sends from its own **From** field; an empty one is not filled in from Preferences, SMTP.

## Things to know about some starters

- **Passwords and keys** are not asked in the dialog. Put the partner's password or key into the Find or the Copy that names the partner's server, and the PGP key's password into the PGP task. Their **Notes** say where.
- **Sort files by their kind** unticks **Make Jump act like if/else scenario passing all items.** in its Jump, so the list is split: the PDF files go down the true line and the others down the false line, both at once. With the box ticked, the whole list would go one way. For more than two kinds, use a [Branch](Task-Branch.md) with a filter on each dot. The Jump compares `{lower_start}{ext}{lower_end}` with `.pdf`: the extension with its dot, in small letters, so `report.PDF` is taken too. A Jump's **Equals** is exact, capitals included.
- **Encrypt with PGP and send** encrypts each file to `name.pgp` and deletes the original. Its PGP task's filter is `!*.pgp`: a file that is already encrypted, left in the outbox by a send that failed, is sent on the next run as it is and not encrypted twice.
- **Decrypt what users upload** and **Keep a list of what arrived** are started by an [event](Users-Events.md), not by a schedule. In the User Manager, open the user or group, add an event for uploads with the action **Run Plugin**, and choose the job. See [What starts a job](Jobs-Triggers.md#an-event-of-a-user). These two have **Single instance only** off (Setup, Options): each upload's run has its own files, and a run that is still going must not turn the next upload's run away.
- **Scan files before they are released** needs a scanner first: Preferences, Malware Scanning. Without one the scan fails.
- **Delete files older than 90 days**: before you tick **Job enabled**, run it once with a [breakpoint](Jobs-Breakpoints.md) before **Delete them** and look at the list it would delete.
- **Tell an API about each new file** sends `{"name":"{name}","size":{size}}` with `Content-Type: application/json` and takes 200, 201, 202 and 204 as success. Set the API's sign-in in the HTTP task, or replace the task's settings with **Import from cURL** ([Snippets and the curl import](Jobs-Snippets.md#import-from-curl)).
- **Deliver each file to three places**: a failure on one of the three paths fails the job at the joiner, and the originals stay for the next run. The report comes before the Delete, because a Delete takes the files it removed out of the list. For two or four places, change **Dots** in the Branch and remove or add a Copy.

## Your own starters

Jobs in a job folder named `JOB_STARTERS` are offered under **Your starters**, beside the built-in ones. Picking one makes a copy under the new name: a new id, no change log, and **Job enabled** off when it has a schedule. The first line of its note is shown as its description.

Use it for your own standard jobs: save a finished job into `JOB_STARTERS` (copy and paste it there in the job list), with its passwords taken out. Keep the jobs there on **Manually**: they are ordinary jobs and would otherwise run on their schedule.

## Who sees which starter

| Case | What the dialog does |
|---|---|
| the license has no jobs | **New** is locked, as for **New job…** |
| a [role](Jobs-Access.md) without the right to make jobs | as for **New job…**: the job is not made |
| a role limited to some task types | a starter with another type is greyed, with "Needs task types your role cannot add: …" |
| [CrushMFT Orchestrator](CrushMFT-Orchestrator.md) | the two starters that need a user's upload are left out |
