Administer > Application Setup > Process Designer > Adding a rule > Add a Start or Stop Clock rule

Add a Start or Stop Clock rule

Applies to User Roles:

System Administrator

Implementer

This rule enables you to start or stop an HPE Service Manager clock to measure elapsed time. For example, if you want to know the time taken for an incident record to move from the Validation phase to the Risk and Impact Analysis phase, configure a rule to start a clock when the record enters the Validation phase. Then, configure another rule to stop the same clock when the incident record moves to the Risk and Impact Analysis phase. The time difference is stored in the clocks table along with start and stop times.

To add a Start or Stop Clock rule to start a clock, follow these steps:

  1. In the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Click Search to open the Rule Set form, and then select the rule set to which you want to add the rule.

    Note You can edit user-defined rule sets only. Out-of-box rule sets are labeled as HPE Proprietary and cannot be modified.

  3. Click Add Rule to open the Select Rule Type page, and then click Start or Stop Clock.
  4. In the Rule Description field, type a description of your new rule.
  5. Click Edit to add conditions to the rule.

    Note If you do not specify a condition, the value defaults to Always.

  6. Select Start Clock, and then click Next.
  7. In the Name of Clock pane, choose one of the following methods to define the clock name:

    • Select the Fixed Name option to identify a specific clock. Type a clock name to add a new clock, or select an existing clock name from the drop-down list. 
    • Select the Set Using JavaScript option to set a clock name by using a JavaScript. The following is an example of setting a clock by using a JavaScript:

      clockName = ”New Clock”;
  8. In the Use this schedule pane, select a predefined schedule or configure a schedule by using a JavaScript.
  9. In the Using this time zone pane, select the time zone that the clock uses. Options include the location of the system server, technician, customer, or CI. You can also enter a fixed value (a specific time zone) or configure the time zone by using a JavaScript.
  10. Click Finish to add the new rule to the rule set.

Once that you have created a rule to start a clock, you can add another rule to stop the clock. To do this, follow these steps:

  1. In the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Click Search to open the Rule Set form, and then select the rule set to which you want to add the rule.
  3. Click Add Rule to open the Select Rule Type page, and then click Start or Stop Clock.
  4. In the Rule Description field, type a description of your new rule.
  5. Click Edit to add conditions to the rule.

    Note If you do not specify a condition, the value defaults to Always.

  6. Select Stop Clock, and then click Next.
  7. In the Name of Clock pane, choose one of the following methods to define the clock name:
    • Select the Fixed Name option to identify a specific clock. Type a clock name to add a new clock, or select an existing clock name from the drop-down list. 

    • Select the Set Using JavaScript option to set a clock name by using a JavaScript.

      Note The name of the stop clock rule should be the same as the corresponding sart clock rule.

  8. Click Finish to update the rule.