Defining Named Schedule Instances
A multi-instance schedule can be associated with one or more named instances. Each named instance can carry its own schedule instance properties and exception rules that modify job fields at build time.
For conceptual background, refer to Named Schedule Instances in the Concepts online help.
Define a Named Instance
To define a named instance for a multi-instance schedule, complete the following steps:
- Select Schedule Master under the Administration topic. The Schedule Master screen displays.
- Select the schedule in the Schedule Selection list.
- Select the Schedule tab in the Schedule Details frame.
- Select the Multi-Instance option in the Schedule Properties frame.
- Select the Instance Definition tab in the Schedule Details frame.
- Select the Named Instance option.
- Select Add in the Instances frame. The Select Instance dialog displays.
- Do one of the following:
- Select the add button next to the Instance field, enter the instance name in the Instance Name field, then select OK to create and assign a new instance.
- Select an existing instance name from the Instance list.
- Select OK to confirm the selection, or Cancel to cancel.
Result: The instance name appears in the Instances list and the Instance Details frame becomes active.
Define Instance Properties
To associate properties with the selected named instance, complete the following steps:
- Select the instance in the Instances list.
- Select the Properties tab in the Instance Details frame.
- Enter a property name in the Property Name field.
- Enter a property value in the Property Value field.
- Select Add.
Property names cannot contain the characters = ' ( ) \ , | or end with a space. Duplicate property names within the same instance are not allowed.
Define Exception Rules
Exception rules override specific job field values for all jobs matching a pattern when the schedule is built.
Only users in the ocadm role can define exception rules.
To define exception rules for a named instance, complete the following steps:
-
Select the instance in the Instances list.
-
Select the Exceptions tab in the Instance Details frame.
-
Select Add in the Job Patterns frame. The Job Pattern dialog displays.
-
Enter the job pattern. Wildcards (
*) are supported.noteThe exception rules apply to all jobs whose names match the specified pattern. Using
*alone applies exception rules to all jobs in the schedule. -
Select OK to save the job pattern, or Cancel to cancel.
-
Select Add in the Exception Rules frame. The Add Exception Rule dialog displays.
noteFor fields that support tokens, press Ctrl+T to open the Global Property Selector and access global properties and named instance properties. You can also type a token manually. For more information, refer to Tokens in the Concepts online help.
-
In the Job Field list, select the job field to modify.
noteSome job fields do not allow exceptions and are handled at schedule build time.
-
In the To Replace field, enter the existing string to replace, or leave it blank to replace the entire field value.
noteSteps 8–10 apply to all predefined job fields except Job Build Status. For Job Build Status, select one of the following values from the New Value list, then skip to step 11:
CancelledDisable BuildOn HoldReleasedTo Be Skipped
When defining the To Replace value:
- The value may be an empty string (
""), a fixed string ("abc"), or a string containing instance properties ([[$this.Property]]). - The value may not be a property expression.
[[@name]]refers to the current instance name (case-sensitive).[[@current]]refers to the current value of the job field (case-sensitive).$thisis a case-sensitive placeholder for the instance property named in the instance definition.
-
In the New Value field, enter the replacement value.
The replacement value may be:
- A fixed string (
"abc") - A string containing instance properties (
[[$this.Property]]) - A property expression (
[[@current]] + ToOaTime("02:00"))
- A fixed string (
-
Select the Is Expression option if the new value is a property expression.
-
Select OK to save the exception rule, or Cancel to cancel.
-
Repeat steps 3–11 to define additional job patterns and exception rules.
Result: The exception rules are saved and will be applied to matching jobs when the schedule is built.
Exception rule examples
The following examples show common exception rule configurations.
Example 1: Add an argument to a command line
| Field | Value |
|---|---|
| Job Field | (Windows) Command Line |
| To Replace | C:\MyFolder\MyApp.exe -arg1 firstArg -arg2 secondArg |
| New Value | C:\MyFolder\MyApp.exe -arg1 firstArg -arg2 secondArg -arg3 thirdArg |
| Is Expression | No |
Example 2: Change the primary machine using an instance property
| Field | Value |
|---|---|
| Job Field | Primary Machine |
| To Replace | MyMachine |
| New Value | My[[$this.Property]]Machine |
| Is Expression | No |
Example 3: Append the instance name to the current department value
| Field | Value |
|---|---|
| Job Field | Department |
| To Replace | (leave blank) |
| New Value | [[@current]][[@name]] |
| Is Expression | No |
Example 4: Add 10 minutes to the current start offset using an expression
| Field | Value |
|---|---|
| Job Field | Start Offset |
| To Replace | (leave blank) |
| New Value | [[@current]] + ToOaTime("00:10") |
| Is Expression | Yes |
Save Changes
To save the named instance configuration, complete the following steps:
- Select
Save on the Schedule Master toolbar.
- Select Close ☒ to close Schedule Master.