| Document number | Revision |
|---|---|
| DOCU13077 | 1 |
<job> Element - Schema ReferenceDefinitionContent modelAttributesElementsSpecial elementsSamplesActive Directory (AD) user- and user group replicationIngoing and outgoing email communicationsEmail reminder (for items reaching or exceeding specific dates)Custom .ASPXRelevant tools and utilitiesJoblist
Parent element(s): <schema>.
The <job> element can be used to automatically execute .ASPX files, or run external hooks, and can be scheduled to run daily or at a set interval.
The specification of what attributes, elements and data that are available and allowed within the <job> element.
This section introduces you to the XML attributes and values that are available and can be included within the <job> element.
| Attribute | Description | Mandatory |
|---|---|---|
| name | Unique element name. | ✔️ |
| time | Specific time at which the scheduled job will be executed daily. Accepted format is HH:mm (00:01...23:59). | ✔️ / ❌ (requires either time or interval attribute to be defined). |
| interval | Specific period frequency for how often the scheduled job will be executed. Accepted format is HH:mm (00:01...23:59). | ✔️ / ❌ (requires either time or interval attribute to be defined). |
| url | Defines the destination (address) of a specific .ASPX file to be executed. | ✔️ / ❌ (Requires either url attribute or url element to be defined). |
This section introduces you to the XML elements that are available and can be placed within the <job> element.
| Element | Description | Mandatory |
|---|---|---|
| url | This element defines the destination (in data characters [CDATA] as a value) of a specific .ASPX file to be executed. | ✔️ |
Example of a <job> definition (default and bundled with Highstage) that creates new, updates existing, and removes inactive users and user groups from the associated Active Directory (AD) by executing the associated file (adsireplicate.aspx) every hour:
<job name="LdapReplicate" url="ts/ldap/adsireplicate.aspx" interval="01:00"/>
Example of a <job> definition (default and bundled with Highstage) that is responsible for sending and receiving pending mail communications through Highstage by executing the associated file (sendReceive.aspx) at an interval of five minutes:
xxxxxxxxxx<job name="MailSendReceive" url="ts/mail/sendReceive.aspx" interval="00:05"/>
Sample of a custom <job> definition that is executed daily at 07:00. It is responsible for sending out mails to authors on all documents that were approved over a year ago (mail subjects. recipients and recipient fallbacks can also be configured):
xxxxxxxxxx <job name="DefaultDateReminder" time="07:00"> <url name="Default"> <![CDATA[ts/mail/reminder/generic.aspx?t=doc&_columns=%2Bapprovedate&approvedate=<T-0000-01-00&_resourcecolumn=author&_resourcefallback=employee@highstage.dk&_title=This item was last approved a year ago. Please update the approval procedures ]]> </url> </job>Info: Please refer to our documentation to learn more about configuring automated email reminders.
.ASPXExample of a custom <job> definition that executes a .ASPX file (once a day at 08:00), and is located directly in the TWEAK folder on the designated Highstage server:
xxxxxxxxxx<job name="sample" time="08:00"> <url name="default"> <![CDATA[ tweak/customExecutableFile.aspx?t=doc&attributesample=1 ]]> </url></job>Info: Please note that the referenced file
customExecutableFile.aspxis an example and has no real purpose or usage.
The Joblist is a tool in Highstage that lists all <job> configurations that are currently active and provides you with detailed information about each individual <job> element:

It can be accessed by administrators (With a set userlevel of AdminRead/Adminwrite) by navigating to SYSTEM > JobList.
The tool provides you with detailed information about:
<job> element.<job> (resulting record of entries will be shown on a page when executed).<job> element.
