# Class: WorkType

## tibco.objectapi.common.datamodel.WorkType

#### new WorkType()

Work type definition. (This should be considered as the API specification of any work item created for this work type.). Constructs a new WorkType.

The following features are supported:

- `Work Type ID`
- `Work Type UID`
- `Work Type Description`
- `Data Model`
- `Type Piled`
- `Piling Limit`
- `Ignore Incoming Data`
- `Reoffer On Close`
- `Reoffer On Cancel`

### Members

#### dataModel :tibco.objectapi.common.datamodel.DataModel

Specification of INPUT, OUTPUT and INOUT parameters, which comprise the data model for the work type. This property holds the value of the 'Data Model' containment reference.

##### Type:

- tibco.objectapi.common.datamodel.DataModel

#### ignoreIncomingData :boolean

Specifies incoming data changes, for example a Work Item reschedule will be ignored if the item data has been changed locally. The default is true so any locally changed data will not be overwritten by a reschedule. This property holds the value of the 'Ignore Incoming Data' attribute.

##### Type:

- boolean

#### pilingLimit :number

Number of work items of this type that can be successively piled. This property holds the value of the 'Piling Limit' attribute.

##### Type:

- number

#### reofferOnCancel :boolean

Whether the work item is to be re-offered on cancel. If true (default behaviour) it will be re-offered to the candidate resource set as if it was new work This property holds the value of the 'Reoffer On Cancel' attribute.

##### Type:

- boolean

#### reofferOnClose :boolean

Whether the work item is to be re-offered when it is closed. If false (default behaviour) the item will not be re-offered, but will remian allocated to the resource. This property holds the value of the 'Reoffer On Close' attribute.

##### Type:

- boolean

#### typePiled :boolean

Flag indicating whether the work type supports the "Piling" workforce resource pattern. This property holds the value of the 'Type Piled' attribute.

##### Type:

- boolean

#### workTypeDescription :string

Textual description of the work type. This property holds the value of the 'Work Type Description' attribute.

##### Type:

- string

#### workTypeID :string

Internal unique ID of the work type as generated by BRM when the work type is registered. This property holds the value of the 'Work Type ID' attribute.

##### Type:

- string

#### workTypeUID :string

Unique ID of the work type. This property holds the value of the 'Work Type UID' attribute.

##### Type:

- string