This documentation supports the 20.02 version of Remedy Action Request (AR) System.

To view an earlier version, select the version from the Product version menu.


Old Business Time commands

The following commands in this topic were used in the old Business Time scheme.

If you use the old Business Time forms, you can use these commands, but they do not work with Business Time 2.0.

The parameters for these commands are defined in Business Time command parameters.

Application-Bus-Time-Add

The Application-Bus-Time-Add command adds the requested offset to the start time and returns a timestamp representing the time calculated. Use this command to recalculate time into the future.

Use the following syntax for the Application-Bus-Time-Add calculation:
Application-Bus-Time-Add "<startTime>" ["<amount>" ["<amountUnits>" ["<holidayScheduleName>" [HTMLUATarsadministering1030:"<workdayScheduleName>"]]]]

The <startTime> parameter is required in this command. This parameter must be a value such as a field reference ($<fieldName>$). Other fields are optional and use the default value if not provided. You can specify multiple business activity names.

For example, add one day by using the following calculation:
$PROCESS$ Application-Bus-Time-Add "$<fieldName>$" "<amount>" "<amountUnits>"

This adds one day to the value in $<fieldName>$. Show $<fieldName>$ as <startTime>. Set the <amount> to 1 and set the <amountUnits> to 4 (representing days), thus adding one day into the calculation. The final syntax looks like:
$PROCESS$ Application-Bus-Time-Add "$8/26/2004$" "1" "4"

Application-Bus-Time-Diff

The Application-Bus-Time-Diff command computes the difference between the start time and the end time. The return is an integer representing the difference in seconds. Use this command to compare two different times (start time and end time) to get the actual business time.

Use the following syntax for the Application-Bus-Time-Diff calculation:
Application-Bus-Time-Diff "<startTime>" "<endTime>" ["<holidayScheduleName>" [HTMLUATarsadministering1030:"<workdayScheduleName>"]]

The <startTime> and <endTime> parameters are required in this command. Other fields are optional and default if not provided. You can specify multiple business activity names.

Application-Bus-Time-Subtract

The Application-Bus-Time-Subtract subtracts the requested offset from the start time and returns a timestamp representing the time calculated. Use this command to recalculate time in the past.

Use the following syntax for the Application-Bus-Time-Subtract calculation:
Application-Bus-Time-Subtract "<startTime>" ["<amount>" ["<amountUnits>" ["<holidayScheduleName>" [HTMLUATarsadministering1030:"<workdayScheduleName>"]]]]

The <startTime> parameter is required in this command. Other fields are optional and use the default value if not provided. You can specify multiple business activity names.

Was this page helpful? Yes No Submitting... Thank you

Comments