Retrieving due date in pre-script
Within the pre-script, the following APIs can be used to access the due date:
var dueDate = jst.getDueDate();
This API gives the present due date of the workstep instance that has been calculated using the system calendar.
var dueDate = jst.calculateActivityDueDate();
This API calculates and provides the due date based on the group calendar using the current performer information.