SELECT
t.taskID,
t.priority,
t.assignedDateTime,
t.restartTime,
t.wdoSnapshot,
t.overflowInd,
t.versionNo,
w.deadlineTime
INTO
:taskID,
:priority,
:reservedDateTime,
:restartDateTime,
:wdoSnapshot,
:overflowInd,
:versionNo,
:deadlineDateTime
FROM
Task t,
WorkflowDeadline w,
TaskAssignment ta
WHERE t.taskID = w.taskID
AND t.taskID = ta.taskID
AND ta.relatedName = :reservedBy
AND ta.assigneeType = 'RL9'
AND w.deadlineTime >= :fromDeadlineDateTime
AND w.deadlineTime < :toDeadlineDateTime
AND t.reservedBy = :reservedBy
AND t.status = :status
ORDER BY t.restartTime ASC
|