# Class: WorkModelScript

## tibco.objectapi.brm.WorkModelScript

#### new WorkModelScript()

Definition of a work model script. Constructs a new WorkModelScript.

The following features are supported:

- `Script Body`
- `Script Language`
- `Script Language Extension`
- `Script Language Version`
- `Script Operation`
- `Script Type ID`

### Members

#### scriptBody :string

The body of the script to be run on the specified work item operation. This property holds the value of the 'Script Body' attribute.

##### Type:

- string

#### scriptLanguage :tibco.objectapi.brm.WorkItemScriptType

The language of the script to be run e.g. JSCRIPT, JYTHON etc... This property holds the value of the 'Script Language' attribute.

##### Type:

- tibco.objectapi.brm.WorkItemScriptType

#### scriptLanguageExtension :string

The file extension of the language of the script to be run e.g. js, py etc... This property holds the value of the 'Script Language Extension' attribute.

##### Type:

- string

#### scriptLanguageVersion :string

The version of the language of the script to be run e.g. 2.2.1, 1.2a etc... This property holds the value of the 'Script Language Version' attribute.

##### Type:

- string

#### scriptOperation :tibco.objectapi.brm.WorkItemScriptOperation

What work item operation is the script for e.g. OPEN, CLOSE, COMPLETE etc... This property holds the value of the 'Script Operation' attribute.

##### Type:

- tibco.objectapi.brm.WorkItemScriptOperation

#### scriptTypeID :string

The ID of the script type used during the use of complex fields in scripts. This will either be populated with a task library ID or process ID. This property holds the value of the 'Script Type ID' attribute.

##### Type:

- string