A task assignment associates the task designator on the right side of the assignment operator (:=) with the task indicated by the expression on the left side.
<task assignment>
──<task designator>── . ──<task-valued task attribute name>── := ──────► ►─<task designator>────────────────────────────────────────────────────┤
For information on task designator and task-valued task attribute name, see TASK and TASK ARRAY Declarations.
The PARTNER task attribute is used in conjunction with the CONTINUE statement.
The following are examples of Task Assignment:
The following example assigns the task TASKIT to the EXCEPTIONTASK attribute of TISKIT.
TISKIT.EXCEPTIONTASK := TASKIT
The following example assigns the task identified by the task array element TASKARAY[N] to the EXCEPTIONTASK attribute of TSK.
TSK.EXCEPTIONTASK := TASKARAY[N]
The following example assigns the task COHORT to the PARTNER attribute of TASKVARB.
TASKVARB.PARTNER := COHORT
The following example assigns the task identified by the task array element COWORKERS[INDX] to the PARTNER attribute of MYSELF.
MYSELF.PARTNER := COWORKERS[INDX]
The following example assigns the task that is the PARTNER attribute of the task MYSELF.PARTNER to the task that is the EXCEPTIONTASK attribute of the task MYSELF.PARTNER.
MYSELF.PARTNER.EXCEPTIONTASK := MYSELF.PARTNER.PARTNER

