Reassign
You can use this function for Optiva Workflows.
Purpose
Sends the workflow task to an alternate user.
Syntax
Dim variable As Integer = Reassign(User, Group, Role)
Arguments
Part | Description |
---|---|
User |
New user to be assigned the current task. |
Group |
New group to be assigned the current task. |
Role |
New role to be assigned the current task. |
Description
Use this function to change task assignments from one user, group or role to another user, group or role. Assign this function to the REASSIGN
event and enable users to select the new assignment. Or assign this function to a different event and hard-code the reassignment.
Examples
In this example, the script is included in the REASSIGN
event. When users click , they are prompted to select a new user, group or role to assign the task to.
MessageList("Assign this task to a user, group, or role.")
Dim iReassign As Integer = Reassign("","","")
Return 1
In the next example, the script is included in the RETURN
event. When a user clicks , the task is reassigned to the FORMULATION
group.
MessageList("This task is reassigned to the formulas group.")
Dim iReassign As Integer = Reassign("","FORMULATION","")
Return 111