Operation Details
Description: Returns all the tasks that are directly assigned to the user.
Sterotype: nsmulti
SQL
SELECT
  ta.taskID,
  t.assignedDateTime,
  t.wdoSnapshot,
  u.fullName,
  w.deadlineTime,
  t.priority,
  t.status,
  t.versionNo
INTO
  :taskID,
  :assignedDateTime,
  :subject,
  :assignedTo,
  :taskDeadlineDateTime,
  :taskPriority,
  :status,
  :versionNo 
FROM
  TaskAssignment ta,
  Users u,
  Task t 
  
  LEFT OUTER JOIN
  
  WorkFlowDeadLine w 
  ON w.taskID = t.taskID 
WHERE ta.taskID = t.taskID 
  AND t.status NOT IN( :taskCompleted, :taskClosed) 
  AND t.reservedBy IS NULL 
  AND ta.relatedName = u.userName 
  AND ta.relatedName = :relatedName