# Class: ProcessTemplate

## tibco.objectapi.pm.ProcessTemplate

#### new ProcessTemplate()

Type to describe a process template. Constructs a new ProcessTemplate.

The following features are supported:

- `Basic Template`
- `State`
- `Priority`
- `Creation Time`
- `Will Save`
- `Save Duration`
- `Service Process`

### Members

#### basicTemplate :tibco.objectapi.pm.BasicProcessTemplate

Basic/core attributes of this process template. This property holds the value of the 'Basic Template' containment reference.

##### Type:

- tibco.objectapi.pm.BasicProcessTemplate

#### creationTime :Date

Date/time when this process template was created. This property holds the value of the 'Creation Time' attribute.

##### Type:

- Date

#### priority :string

Default scheduling priority to be assigned to process instances created from this process template. This property holds the value of the 'Priority' attribute.

##### Type:

- string

#### saveDuration :string

duration string to indicate how long the terminated process instances should be saved This property holds the value of the 'Save Duration' attribute.

##### Type:

- string

#### serviceProcess :boolean

service process flag to indicate whether definition is a service process. true for service process: false for business process This property holds the value of the 'Service Process' attribute.

##### Type:

- boolean

#### state :string

State of the process template, for example ACTIVE. This property holds the value of the 'State' attribute.

##### Type:

- string

#### willSave :boolean

flag to indicate whether terminated process instances should be saved This property holds the value of the 'Will Save' attribute.

##### Type:

- boolean