Master Template

Parent page: Orchestrator › Template Audience: RPA Developers Prerequisites: Developer role


Overview

The Template › Master Templates screen is where the templates that define the input data of processes are managed. Each record is a Master Template; under it are draft and published template versions. A version defines the fields (items) of the input: their name, data type, whether they are required, whether they are written to the work's description, and their limits. Processes are linked to a master template and use its active version: the Add Work form is built from this version, and the input of an added work is validated against it.

What you will learn on this page:

  • Template types and where they are used in a process

  • The Master Templates list and adding a new master template

  • Master Template Details: draft and published versions, publishing, setting active

  • Template version details, adding items and item types

  • Limitations and lookup values

  • How the template shapes the Add Work form and the work data


Template Types

Template Type

Where it is used

Field in the process

Automate / On-Demand

Work input of processes with Run Type Automate or On-Demand. The Add Work form is built from this template.

Input Template

Schedule

Schedule input of processes with Run Type Schedule

Input Template

Startup

Parameters given to the robot when the process starts, entered with Add Startup Parameter in the process details

Startup Template

Config

Process settings entered with Add Config in the process details

Process Config

The Input Template field of a process is shown only when Input Type User Input is selected. The list contains the master templates that match the process's run type and have an active version. For details see Process › Processes.

💡 Tip: The Template Type cannot be changed after saving. The same name can be used in different template types; name and type together must be unique. Otherwise the error "Specified Name already exists for this template type." is shown.


Master Templates List

Template › Master Templates

Template › Master Templates

Top buttons

Button

Description

Actions › Import Template

Uploads a .pti file (single file, at most 0.5 MB) exported from another environment with Export. The template is added as a draft to the master template with the same name and type; if there is no such master template, it is created. The draft's details then open.

New Record

Adds a new master template.

Export

Downloads the Selected Records, Current Page or Current Filter records as Excel (XLSX, XLS), Open Document (ODS) or Text (CSV).

Master templates cannot be disabled; this screen has no Enable / Disable buttons.

Row actions

Action

Description

Edit

Changes the Name and Description fields.

Details

Opens the Master Template Details window.

Delete

Deletes the master template (see Deleting).

⋮ › Info

Shows the created and modified user and dates.

Default columns: Name, Description, Created User, Created Date, Template Type. Modified User and Modified Date are added from the column selector.

Filters

The Master Template Filters window opened with Filters filters by Name, Description and Template Type, and by created and modified date ranges. Text filters look for a case-insensitive exact match; with the * wildcard you can search for values that contain (*Invoice*), start with (Invoice*) or end with (*Entry) a text.

Deleting

  • A master template used as the Input Template or Startup Template of a process, or in a Process Config, cannot be deleted: "Template used in process "{0}" can not be deleted".

  • It cannot be deleted if a work is linked to one of its published versions: "Template used in Queue Work can not be deleted".

  • When a master template is deleted, all its versions, items and sub templates are deleted too.


Adding a New Master Template

  1. Click New Record in the list; the Process Master Template New Record window opens.

  2. Fill in Name; optionally enter a Description.

  3. Select the Template Type.

  4. Click Save.

Process Master Template New Record — Template Type List Open

Process Master Template New Record — Template Type List Open

The master template is created empty. To define its fields, add the first draft with Actions › Add Template in its details. Edit changes only the Name and Description fields.


Master Template Details

Opens when you click Details in the list. The top shows the master template's information; below are the draft and published templates and the processes that use this master template.

Process Master Template Details — Actions › Add Template, Draft and Published Templates

Process Master Template Details — Actions › Add Template, Draft and Published Templates

Field

Description

Name, Description, Template Type

The master template's information

Version Number

Number of the active version. Not shown if there is no active version.

Top buttons

Button

Description

Actions › Add Template

Adds a new draft template. A Description is entered in the Process Template New Record window that opens. Optionally upload an Excel file (XLS, XLSX): an item of type String, not required, is created for each column in the header row of the first sheet.

Delete, Edit

Same as the row actions in the list.

Previous / Next

Moves to the previous or next master template in the list.

Draft Templates

Versions under development. Columns: Description, Created Date, Modified Date. Row actions:

Action

Description

Edit

Changes the draft's Description field.

Details

Opens the template version's details (see Template (Version) Details).

Delete

Deletes the draft together with its items and sub templates.

Publish

Publishes the draft as a new version. Asks for confirmation: "Record can not be edited after publish".

Published Templates

Published versions, newest first. Columns: Version Number, Description, State (Published or Active), Created Date, Modified Date. Row actions: Details and Set Active. Edit and Delete are disabled on a published version.

Processes

Lists the processes that use this master template as their Input Template: Name, Description.

Publishing

  • Only a draft can be published. The draft must have at least one item, and Is Description must be checked on at least one item. Otherwise the error "At least one template item must be specified in order to publish template" or "At least one template item must be set as description" is shown.

  • Dropdown items must have values in their lookup, and the sub templates used must have items.

  • The version number is assigned automatically: one more than the highest version number in the master template. A draft has no number.

  • A published version cannot be changed or deleted. To make a change, create a new draft with Save As Draft in the version's details.

  • No new draft is created automatically after publishing.

  • When publishing, the values of Dropdown items are copied into the version (see Lookup values).

Setting Active

Set Active on a published version's row makes that version active: its State becomes Active and it appears in the master template's Version Number field. The previously active version returns to Published; a master template has only one active version at a time.

  • Newly added works and the Add Work form use the active version. Existing works stay on the version they were added with.

  • For the Schedule and Config types, if the required fields of the new active version differ from the previous one, the existing schedule and config inputs of processes are marked invalid and must be updated for the new version.


Template (Version) Details

Opens with Details in the draft or published templates table; Go Back returns to Master Template Details. Fields: Master Template, State, Version Number, Description.

Details of the Active Version — Actions Menu, Items, Detail Items and Sub Templates

Details of the Active Version — Actions Menu, Items, Detail Items and Sub Templates

Actions menu

Action

When shown

Description

Add Item

On a draft

Adds a new field to the template (Process Template Item New Record).

Add Template Item

On a draft, in an Automate / On-Demand master template

Creates a sub template. A sub template defines the columns of a table filled in row by row on the Add Work form, and is linked to the form with an item of type Template.

Save As Draft

Always

Creates a copy of this version as a new draft in the same master template; the Description entered in the window becomes the draft's description.

Save As New Template Master

Always

Adds the copy as a draft to the master template of the same type with the name entered in the window; creates it if no master template has this name.

Export

On a published or active version

Downloads the version as a <master template name>-<version>.pti file. The file is uploaded to another environment with Import Template.

Edit, Delete

On a draft

Changes the Description field / deletes the draft.

Sub templates do not have Save As Draft, Save As New Template Master, Export or Add Template Item.

Tables

Table

Content

Items

Items other than the Template type. Columns: Order Number, Name, Description, Item Type, Limitations, Attachment File Type Filter, Allow Multiple Lines, Is Description, Is Required. Item Type shows extra information in parentheses: the letter case for String, the value for Hardcoded Value, the lookup name for Dropdown.

Detail Items

Items of type Template. Columns: Order Number, Name, Description, Item Type, Template Detail (the linked sub template), Is Required.

Sub Templates

Sub templates of this version (Description). Details opens the sub template's own items.

Row actions are Edit, Details and Delete; Edit and Delete are enabled only on a draft. On a draft, table rows can be reordered by drag and drop; when the order changes, it is saved with the Save button shown below the table. The order sets the order of the fields on the Add Work form and in the work's description.


Adding an Item (Process Template Item)

Opens with Actions › Add Item in the details of a draft version. The window title shows the master template's name. When an Item Type is selected, only the fields of that type are shown.

Adding a Dropdown Item — The Lookup List and the Values Panel

Adding a Dropdown Item — The Lookup List and the Values Panel

Field

Description

Name

Name of the field; becomes the key in the work data. Must be unique within the template. For Date Range and Date Time Range, the start and end names are separated by ; (e.g. Budget Start ; Budget End).

Description

Description of the field

Item Type

Data type of the field (table below). The options are listed by the master template's type.

Lookup

Required for Dropdown. The list the values come from, defined on the Lookup screen. When selected, the Values panel shows the list's values.

Letter Case

For String: Upper Case, Lower Case and Camel Case convert the entered text; Number Only and Mail validate the entered value.

Allow Multiple Lines

For String, shows a multi-line field on the form. If checked, Is Description cannot be used.

Hardcoded Value

Required for Hardcoded Value; the value written to the work.

Attachment File Type Filter

For Attachment, the allowed extensions separated by commas (e.g. pdf, xlsx).

Template Detail

Required for Template; the sub template to link.

Is Description

The values of checked fields are joined with "-" in order number order and written to the work's Description when the work is added. Checking it also checks Is Required. Cannot be used for the Password, Attachment and Template types.

Is Required

Makes the field required on the form; if left empty, the error "{0}" is required. is shown. For the Template type, it requires at least one row in the sub table.

💡 Tip: Items cannot be added, changed or deleted on a published version: "Only draft template can be changed". First create a new draft with Save As Draft.

Item types

Item Type

On the Add Work form

Template types it can be used in

String

Text box (multi-line with Allow Multiple Lines)

All

Integer

Whole number

All

Decimal

Decimal number; rounded to two digits

All

Date, Date Time

Date / date-time picker

All

Date Range, Date Time Range

Two fields: start and end

Automate / On-Demand, Schedule

True/False

Check box

All

Dropdown

Drop-down list (single selection)

All

Hardcoded Value

Not shown on the form; the value in the template is written to the work

All

Password

Password box; stored encrypted in the work data

Automate / On-Demand

Attachment

File upload

Automate / On-Demand

Template

Sub table; its columns come from the linked sub template

Automate / On-Demand

Created User, Created User Mail

Not shown on the form; the name or e-mail of the user who adds the work is written

Automate / On-Demand

Created Date, Created Date Time

Not shown on the form; the time the work is created is written

Automate / On-Demand, Schedule

Process Name

The process name as a startup parameter

Startup


Item Details and Limitations

Details in the Items table opens the item's details. On a draft, String, Integer and Decimal items have Actions › Add Limitation; on a Template item, Go To Sub Template moves to the linked sub template.

Details of a String Item — Actions › Add Limitation and the Limitations Table

Details of a String Item — Actions › Add Limitation and the Limitations Table

A limitation restricts the field's value when a work is added: the character length for String, the numeric value for Integer and Decimal. It also applies to sub table rows.

Field

Description

Limitation Type

Greater Than, Greater Than or Equal To, Equal, Less Than, Less Than or Equal To

Value

The number to compare with (the number of characters for String)

  • An Equal limitation is defined on its own; Greater Than and Greater Than or Equal To (and Less Than and Less Than or Equal To) cannot be used together.

  • If the item's type is changed, its limitations are deleted.

  • A work with a value outside the limit is not added: "{0} length must be {1} {2}" (String) or "{0} value must be {1} {2}" (number).

Lookup values

On a draft, a Dropdown item is linked to the list on the Lookup screen, and the Values panel shows the list's current values. When the template is published, the list's values at that moment are copied into the version (Process Template Lookup). The published version, the Add Work form and work validation use this copy. The copy is not opened from a separate screen and cannot be edited; on a published item's details it appears only as the Lookup field and the Values panel.

⚠️ Warning: Values added or changed in the Lookup list later are not reflected in the active version. To bring them to the form, copy the version with Save As Draft, Publish the draft and make it active with Set Active.


How the Template Shapes the Add Work Form and Work Data

  • The Add Work form is built from the active version of the master template that is the process's Input Template. Fields are ordered by order number; multi-line String fields come last. Automatically filled types (Hardcoded Value, Created User, Created User Mail, Created Date, Created Date Time) are not shown on the form. A sub table is shown for each Template item.

  • If the template has no Template or Attachment items, the form has Import From Excel; Download Template creates the header row from the active version. Works added with Excel are tracked on the Excel Imports screen.

  • The work input is stored as JSON with the item names as keys: range types become two keys, sub tables become an array of rows; Password values are encrypted. The work is linked to the version that was active when it was added.

  • The work's Description is built from the fields with Is Description checked. For Dropdown fields, the list's Value is written to the work and the description, not its Description.

  • On every work add, the server checks required fields, data types, limitations, Dropdown values and attachment extensions. The same checks apply to works added through the API.

  • When the active version changes, existing works stay on their versions. A work updated with Edit Input on the Queue › Works screen is moved to the current active version.