Skip to main content

Practice: Define a Global Property

Objective

To replace hardcoded text in the command line with a Global Property so that command line is future proofed should the value need to be changed.

Instructions

Create the Global Property

  1. In the Library > Administration, select Global Properties.
  2. Click the Add button.
  3. In the Name field, enter RUNTIME.
  4. In the Value field, enter 10.
  5. Add Documentation to the Global Property
  • Example: This Global Property will store the number of seconds to run the program.
  1. Click the Save button on the Global Properties toolbar.
  2. Close Library.

Modify the Job

  1. Under Library > Administration, select Master Jobs.
  2. Using the filters, locate and select Windows Job 1 in Practice Schedule 1.
  3. Click the Edit button.
  4. Click the Lock icon in the upper right-hand corner.
  5. Expand Task Details, if not already expanded.
  6. Locate the Command Line and highlight 10.
  7. Using either, the Magic Wand or CTRL+SPACE, pull up the Property Selector window.
  8. Using the Search filter, locate and select the property called RUNTIME.
  9. Click OK.
Note

Your updated Command Line should now look like:

timeout -t[[RUNTIME]]

  1. Click the Save button.

  2. Close Library.

Build the Schedule and Validate that the Global Property is resolved

  1. Open Operations and click on Schedule Build.
  2. Validate that today is the date for the From and To fields.
  3. In the Schedule Build section, select the Released radial button.
  4. Select Practice Schedule 1 from the Schedule List.
  5. Click Build
  6. On the Build Results screen, expand the dropdown menus until you can see and click on Practice Schedule 1.
  7. Click the Practice Schedule 1 link to open the Schedule in Processes.
  8. Verify that all Jobs Finished OK.
  9. Right-click on one of the four jobs that were modified.
  10. In the Job Selection panel, select Job Output.
  11. Click Refresh.
  12. Click on the link that appears after the Refresh is complete.
  13. Look at lines four and five and validate that the Global Property resolved to 10
  14. Close the Job Output.
  15. Close Operations.

Video Walkthrough

Create a Global Property