# Class: ClientService

## tibco.objectapi.service.ClientService

#### new ClientService()

### Methods

#### completeWorkItem(request, callback)

Completes a work item (and update the associated input and output data).

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.CompleteWorkItemClientRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `WorkResponseType`.

#### isCloudEnabled(request, callback)

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.IsCloudEnabledRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `BooleanResponse`.

#### openNextWorkItem(request, callback)

Opens the next work item in the work queue, where the work item is either part of a chained group or is a piled work item. This version also deals with PageFlow items which cannot be directly opened via the WP API

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.OpenNextWorkItemClientRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `WorkResponseType`.

#### openWorkItem(request, callback)

Opens a work item (to get work presentation details and the associated input and output data).

##### Parameters:

Name | Type | Description
--- | --- | ---
`request` | tibco.objectapi.service.request.OpenWorkItemClientRequest | A request set with data for this service call.
`callback` | tibco.objectapi.service.Callback | A callback to handle the service response of type `WorkResponseType`.