GenericConnection Class Methods
The following are the GenericConnection class methods:
Syntax
abandon(reason)
Description
Abandon generic task.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to abandon. |
Returns
Request number.
Syntax
answer(reason)
Description
Answer/Accept the generic task assignment.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to answer. |
Returns
Request number.
Syntax
attachUserData(userData,reason)
Description
Attach user data for the generic connection.
Parameters
Field or Control |
Definition |
---|---|
userData |
User data of the generic connection. |
reason |
The reason code for the answer request. |
Returns
Request number.
Syntax
complete(reason)
Description
Send task completion notification.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to complete. |
Returns
Request number.
Syntax
forward(fromagentId,toagentId, qid, userdata, genericdata, reason)
Description
Forward generic task to another Agent or to another queue.
Parameters
Field or Control |
Definition |
---|---|
fromagentid |
The agent id from whom task is forwarded. |
toagentid |
The target agent id to whom task is forwarded. |
qid |
The target queue to forward the task. |
userdata |
The user data. |
emaildata |
The email data. |
Reason |
The reason code to forward the task. |
Returns
Request number.
Syntax
reject(reason)
Description
Reject generic task assignment.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to reject. |
Returns
Request number.
Syntax
withdraw_RES
(reason)
Description
Send response for the request of (Withdraw of Generic task) by routing server. This is the response from the agent to the routing system.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to withdraw. |
Returns
Request number.