Yes,
try this...
should be done in groovy follows
apiAccessor.processAPI.updateDueDateOfTask(activityInstanceId, taskExpectedEndDate)