| Previous | Next |  | Contents | Index | Glossary

## Agent Structure

Oracle Workflow uses the object type WF_AGENT_T to store information about an agent in a form that can be referenced by an event message. This datatype contains the following attributes:

WF_AGENT_T

Attribute Name | Datatype | Description
--- | --- | ---
NAME | VARCHAR2(30) | The name of the agent.
SYSTEM | VARCHAR2(30) | The system where the agent is located.

The WF_AGENT_T object type also includes the following methods, which you can use to retrieve and set the values of its attributes.

- getName

- getSystem

- setName

- setSystem

## getName

PL/SQL Syntax

`MEMBER FUNCTION getName`

         return varchar2

Description

Returns the value of the NAME attribute in a WF_AGENT_T object.

## getSystem

PL/SQL Syntax

`MEMBER FUNCTION getSystem`

         return varchar2

Description

Returns the value of the SYSTEM attribute in a WF_AGENT_T object.

## setName

PL/SQL Syntax

`MEMBER PROCEDURE setName`

         (pName in varchar2)

Description

Sets the value of the NAME attribute in a WF_AGENT_T object.

Arguments (input) | pNameThe value for the NAME attribute.

## setSystem

PL/SQL Syntax

`MEMBER PROCEDURE setSystem`

         (pSystem in varchar2)

Description

Sets the value of the SYSTEM attribute in a WF_AGENT_T object.

Arguments (input) | pSystemThe value for the SYSTEM attribute.

### See Also

Agents

| Previous | Next |  | Contents | Index | Glossary