Old Business Time commands


Use the commands described in this topic if you use the old Business Time forms. However, these commands do not work with Business Time 2.0. 

The parameters for these commands are defined in Application-Bus-Time2-commands.

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 the 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.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*