Try OpenEdge Now
skip to main content
Resource Monitoring
Creating Jobs and Job Templates : Working with job templates : Creating a job template

Creating a job template

When you create a job template, you can choose the job's characteristics. You need not recreate the job template criteria each time you want to create another job instance based on the job template.
Once you create a job instance from a job template, the two are no longer tied together. You can modify the characteristics of a job instance without affecting the template on which the job is based, and you can update the template without affecting the characteristics of a job instance you have already created.
You choose the following characteristics for the job template: Menu group, Menu entry, and Menu description. Once you create the template, these characteristics enable you to identify it from among all other existing templates. For example, consider a scenario in which a user creates a Database Restore template for use on company databases related to inventory. The user makes the following choices regarding menus:
Menu group
Database Maintenance
Menu entry
DB Restore Inventory
Menu description
DBrestore for all inventory dbs
Once the job template is created, the template appears.
The new job template New menu entry appears in the Database Maintenance menu group with the New job template menu description.
You specify each OpenEdge Management job template's properties and characteristics on two pages. The first template page defines the properties of the job. On the second page, you provide default values for the job instance; however, you can change these values, such as the schedule, for each instance.
To create a job template:
1. In the OpenEdge Management console, choose one:
*Select Jobs > New > Job Template.
*Select Jobs > Go to Jobs > Create Job Template.
The first of the two Job Template pages appears.
2. In the Name field, enter the job template name. Note that the name must be unique among the job templates and that spaces are not allowed in the name fields on this page.
3. In the Menu group field, enter the name of the new menu group, or choose an existing menu group in the Existing field. (When you choose an existing group, the name automatically appears in the Menu group field.)
The menu group is the heading under which the new template will appear (for example, Database Maintenance).
4. In the Menu entry field, enter the template name you want to appear on the Custom Job page.
5. In the Menu description field, enter a brief description of the job template. This description appears in the list of available job templates on the Create Custom Job page, under the template name you provide in step 4.
6. Under the Limit how many databases can be associated with the job field, select one, two, or no limit of databases from the drop-down menu. No limit is the default value.
7. Click Save.
The second of the two Job Template pages appears with the Name field predefined.
8. Provide the properties.
*Entering the User name in the Account information section is optional; if you do not supply a user name, any job instance created based on this template is run under the account OpenEdge Management is running under. Entering a password is required only if you entered a user name. Otherwise, a password is optional.
*You have three AdminServer options from which to choose. The choice affects whether you will need to select an AdminServer when you create a job using the template. Choose one of these options:
*Prompt for AdminServer — You will need to provide the name of the AdminServer when you create a job from the template.
*Use AdminServer of resource — You will not need to provide the name of the AdminServer when you create a job from the template.
*Use specified AdminServer — You will not need to provide the name of the AdminServer when you create a job from the template.
For details about any other field, see Creating a job instance.
9. Click Save. The job template summary appears.
You can now edit or copy the template's characteristics, delete the template, or schedule a job instance to run based on the template.
10. After you specify the properties that you want to default to each instance created from this template, you can:
*Click Edit at the bottom of the page directly to the right of the Completion Actions and Alerts field to continue entering values. The Job Completion Actions and Alerts page appears. This page allows you to define default action and alert occurrences for each job instance created from this template. See Setting up job completion actions and alerts for details.
*Click Save at the top of the page to conclude entering values for the job template. The Job summary page appears.
*If you want to set additional values for job actions and/or alerts, you can access the Job Completion Actions and Alerts page and perform these tasks at a later time by editing the Job page.
*You can also initiate the job immediately by clicking Run Now on the Job summary page.
* Additional characteristics of job templates
* Choosing the job template schedule