Skip to content

CaseInstanceMethods

Methods

close()

close(options?: CaseInstanceOperationOptions): Promise<OperationResponse<CaseInstanceOperationResponse>>

Closes/cancels this case instance

Parameters

Parameter Type Description
options? CaseInstanceOperationOptions Optional close options with comment

Returns

Promise<OperationResponse<CaseInstanceOperationResponse>>

Promise resolving to operation result


getActionTasks()

getActionTasks<T>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<TaskGetResponse> : NonPaginatedResponse<TaskGetResponse>>

Gets human in the loop tasks associated with this case instance

Type Parameters

Type Parameter Default type
T extends TaskGetAllOptions TaskGetAllOptions

Parameters

Parameter Type Description
options? T Optional filtering and pagination options

Returns

Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<TaskGetResponse> : NonPaginatedResponse<TaskGetResponse>>

Promise resolving to human in the loop tasks associated with the case instance


getExecutionHistory()

getExecutionHistory(): Promise<CaseInstanceExecutionHistoryResponse>

Gets execution history for this case instance

Returns

Promise<CaseInstanceExecutionHistoryResponse>

Promise resolving to instance execution history


getStages()

getStages(): Promise<CaseGetStageResponse[]>

Gets stages and their associated tasks for this case instance

Returns

Promise<CaseGetStageResponse[]>

Promise resolving to an array of case stages with their tasks and status


pause()

pause(options?: CaseInstanceOperationOptions): Promise<OperationResponse<CaseInstanceOperationResponse>>

Pauses this case instance

Parameters

Parameter Type Description
options? CaseInstanceOperationOptions Optional pause options with comment

Returns

Promise<OperationResponse<CaseInstanceOperationResponse>>

Promise resolving to operation result


reopen()

reopen(options: CaseInstanceReopenOptions): Promise<OperationResponse<CaseInstanceOperationResponse>>

Reopens this case instance from a specified element

Parameters

Parameter Type Description
options CaseInstanceReopenOptions Reopen options containing stageId (the stage ID to resume from) and an optional comment

Returns

Promise<OperationResponse<CaseInstanceOperationResponse>>

Promise resolving to operation result


resume()

resume(options?: CaseInstanceOperationOptions): Promise<OperationResponse<CaseInstanceOperationResponse>>

Resumes this case instance

Parameters

Parameter Type Description
options? CaseInstanceOperationOptions Optional resume options with comment

Returns

Promise<OperationResponse<CaseInstanceOperationResponse>>

Promise resolving to operation result