new BusinessDeadlineService()
Methods
calcDeadline(request, callback)
The calculation request also includes an optional, ordered collection of identifiers from which a Calendar can be resolved. Those identifiers will consist of Calendar references and Organizational Entities, as set out in the following list, and will be applied in the given order until a Calendar can be resolved.
- Time Event Calendar Reference (can be defined dynamically using a variable assignment)
- Single, Org-Model Entity Participant
- Process Calendar Reference
The Organizational Entity identifiers are used to determine what Base and Overlay Calendars are to be used for the calculation. If no Calendar can be resolved from the given identifiers, the Default Base Calendar will apply.
Having resolved the Calendar(s), the available working hours are determined. Based on those available hours, the calculation returns earliest date and time at which the given duration of work can be completed.
If the given duration specifies any hours, minutes or seconds, the deadline is calculated using any available time. Otherwise, the deadline will be calculated using 'whole working days'. A 'whole working day' is considered to be one in which the available hours is at least the 'min hours' defined for the Base Calendar being used.
Parameters:
Name | Type | Description |
---|---|---|
request |
tibco.objectapi.service.request.CalcDeadlineRequest | A request set with data for this service call. |
callback |
tibco.objectapi.service.Callback | A callback to handle the service response of type XmlCalcDeadlineResponse . |