Business Segment-Entity Association commands
In this topic:
If the Business Segment-Entity Association form contains entries for time segments, you can use the following commands in place of the Application commands described in the previous section.
The following commands contain EntityID parameters so that you do not need to query the Business Segment-Entity Association form and call the previous Application commands.
Application-Bus-Time2-Assoc-Add
Use the following syntax for the Application-Bus-Time2-Assoc-Add calculation:
Application-Bus-Time2-Assoc-Add "<startTime>" ["<amount>" ["<amountUnits>" ["<businessTimeSegmentName1>" "<businessTimeSegmentName2>" . . . [-e "EntityID1" "EntityID2"... ]]]]
Application-Bus-Time2-Assoc-Diff
Use the following syntax for the Application-Bus-Time2-Assoc-Diff calculation:
Application-Bus-Time2-Assoc-Diff "<startTime>" "<endTime>" ["<businessTimeSegmentName1>" "<businessTimeSegmentName2>" . . . [-e "EntityID1" "EntityID2"... ]]
Application-Bus-Time2-Assoc-Subtract
Use the following syntax for the Application-Bus-Time2-Assoc-Subtract calculation:
Application-Bus-Time2-Assoc-Subtract "<startTime>" ["<amount>" ["<amountUnits>" ["<businessTimeSegmentName1>" "<businessTimeSegmentName2>" . . . [-e "EntityID1" "EntityID2"... ]]]]
Application-Bus-Time2-Assoc-Get-Next-Window
Use the following syntax for the Application-Bus-Time2-Assoc-Get-Next-Window calculation:
Application-Bus-Time2-Assoc-Get-Next-Window "<startTimeRange>" "<endTimeRange>" "<duration>" "<windowFlag>" ["<businessTimeSegmentName1>" " <businessTimeSegmentName2>" . . . [-e "EntityID1" "EntityID2" . . . ]]
Application-Bus-Time2-Assoc-Get-Free-Window
Use the following syntax for the Application-Bus-Time2-Assoc-Get-Free-Window calculation:
Application-Bus-Time2-Assoc--Get-Free-Window "<startTimeRange>" "<endTimeRange>" "<level>" "<duration>" "<earliestStartTime>" "<latestEndTime>" ["<businessTimeSegmentName1>" "<businessTimeSegmentName2>" . . . [-e "EntityID1" "EntityID2" . . . ]]
Related topics
Business-Time-application-commands
Business-Time-command-parameters